Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
Files are storing in temprorary internet files
praveen khade
Apr 9 2008 1:07 AM
2.6k
Reply
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();
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
checkboxlist
explain about sitemap