Hi,
Ive created a Web App where it is possible to download an xml file from the server to the client. It works just fine except that the Save Dialog recognizes the file being dowloaded as of type .aspx and the name of the file as being the name of the page I'm on. The page is called Download.aspx and it contains a button that when clicked executes the following code:
//sends the content to the client
Response.ContentType = "text/xml;charset=utf-8";
Response.AppendHeader("Content-Disposition", "attachment, filename=questionnaire.xml");
Response.TransmitFile(Server.MapPath("~/temp_questionnaire.xml"));
Response.End();
The save dialog appears and says:
Name: Download.aspx
Type: ASP.NET Server Page, 1,16KB
From: 127.0.0.1
If I download the file and open i ...
Go to the complete details ...