Use this to open file

  • Thread starter Thread starter Interviews World
  • Start date Start date
I

Interviews World

Use like this

private void OpenFiles(string Filepath)
{
FileInfo file = new System.IO.FileInfo(Filepath);
Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
Response.WriteFile(Filepath);
}

Thanks
http://www.interviewsworld.com
 
Back
Top