i am using asp.net 3.5 with C# and sql server 2005 as database. In my project i have to download some file. I do the code for the same but it not working properly.
My code are as follows..
protected void Button1_Click(object sender, EventArgs e)
// Do some query here..
string filepath = Path.GetFullPath(@"E:\New Folder\" + reader["URESUME"].ToString() + "");
FileInfo file = new FileInfo(filepath);
Response.AddHeader("Content-Disposition", "attachment;filename=" + file.Name);
View Complete Post