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();
}
Loading

Bechir BejaouiRank #144 · 15.9K reputationPosted Apr 9, 2008, 1:29 AM EDT
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Apr 9, 2008, 1:46 AM EDT
praveen khade13 reputationPosted Apr 9, 2008, 1:58 AM EDT
plz help me out from this
Rafiq Batcha18 reputationPosted Apr 9, 2008, 3:00 PM EDT