How to download a file in ASP.Net?

First  & Simple Way of Downloading Asp.Net File   There’s are few lines to download a file Asp.Net.    Response.ContentType = “application/msword”; Response.AppendHeader(“Content-Disposition”, “attachment; filename=AnyFile.doc”); Response.TransmitFile(Server.MapPath(“~/MyFiles/AnyFile.doc”)); Response.End();   First you need to mention content type.   For example , if we want to download .doc… Read More