/ Published in: ASP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//For TEXT: Response.ContentType = "text/txt"; Response.AppendHeader("Content-Disposition", "attachment; filename=" + "file.txt"); Response.Write(file.ToString()); Response.End();