Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
public class DownloadFile : IHttpHandler { public void ProcessRequest(HttpContext context) { string fileName = "HelloWorld.pdf"; string filePath = "C:\\"; context.Response.Clear(); context.Response.ContentType = "application/pdf"; context.Response.AddHeader("Content-Disposition", "attachment; filename=" + fileName); context.Response.WriteFile(filePath + fileName); context.Response.End(); } }
Login to post response