TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
praveen khade
NA
14
0
Files are storing in temprorary internet files
Apr 9 2008 1:07 AM
Hello
Wenever m opeining the files from the grid its storing in Temprory internet files. the name of the file wen displaying from grid is sum wat like dis (Index.pdf shown as Index[1].pdf).
string sid = gvFiles.SelectedValue.ToString();
SqlDataReader sqlDr1 = ConDB.GetInfo(sid);
while (sqlDr1.Read())
{
try
{
string fileName = sqlDr1[2].ToString();
string fileLoc = sqlDr1[5].ToString();
string filetitle = sqlDr1[4].ToString();
FileInfo fInfo = new FileInfo(fileName);
string fExt = fInfo.Extension.ToUpper();
string url = Server.MapPath(fileLoc + fileName);
string path = MapPath(fileLoc + fileName);
Status.Text = path;
WriteFile(path);
}
catch (Exception ex)
{
Label2.Text = "File Read Failed. Reason is as follows" + ex;
}
}
sqlDr1.Close();
}
Reply
Answers (
4
)
checkboxlist
explain about sitemap