Fri
1
Jun '07
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.
The same logic is used in any server language.
Response.Clear();
Response.AddHeader(“Content-disposition”, “attachment; filename=<filename>”);
Response.WriteFile(“C:\</filename><filename>”);
Response.End();
</filename>
The same logic is used in any server language.

Leave a passing comment »