Here is the code:
Response.ContentType = GetContentType(filename);
Response.AddHeader("content-disposition", "attachment; filename=" + filename);
Response.TransmitFile(fullFilename);
// Go to the document page
if (Request.QueryString["rtd"] != null)
{...
Hi. I'm having trouble getting my ASP.NET page to work correctly. I would like to know if this is possible and if so, how do I do it.
When the user clicks a link, it should download a file (using either Response.TransmitFile or Response.BinaryWrite). It should also refresh the page or at...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.