Hi,
check this code
string strFilePath = folderPath + "\\" + GridView1.SelectedRow.Cells[0].Text;
FileStream sourceFile = new FileStream(@strFilePath, FileMode.OpenOrCreate);
long FileSize;
FileSize = sourceFile.Length;
byte[ getContent = new byte[(int)FileSize];
sourceFile.Read(getContent, 0, (int)sourceFile.Length);
sourceFile.Close();
Response.ContentType = sourceFile.ToString();
Response.AddHeader("content-disposition", "attachment;filename=" + GridView1.SelectedRow.Cells[0].Text + "");
Response.BinaryWrite(getContent);
Hope this will help you
Regards
Pradeep