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
Rafiq BatchaPosted Apr 9, 2008, 7:00 PM
praveen khadePosted Apr 9, 2008, 5:58 AM
plz help me out from this
Niradhip ChakrabortyPosted Apr 9, 2008, 5:46 AM
Bechir BejaouiPosted Apr 9, 2008, 5:29 AM