Download any file from ASP.NET
Filed in ASP.NET on Jun.01, 2007
You know, some formats (txt, gif etc.) will be shown on the browser rather than downloading when we try. Below is the script which will help you to download any file.
Response.Clear();
Response.AddHeader("Content-disposition", "attachment; filename=
Response.WriteFile(”C:
Response.End();
The same logic is used in any server language.
Related posts:






















