In this article, I will show you how to download a file using asp.net c#. Based on the file extension you can set the content type value to be get downloaded.The Response.TransmitFile retrieves file by using file server path and writes to it response.