Can someone please tell me how to save an xml file from a site Url to local system by prompting through Save Dialog box
I have written the following code rather writing the whole content on browser window itself rather than prompting through dialog box. Please tell me where I doing wrong.
string Filename = "http://localhost/SiteName/FileName.xml";
XmlDocument doc = new XmlDocument();
string strXML = GetXMLString(doc);
Response.ContentType = "application/xml";
Response.AddHeader("content-disposition", String.Format("attachment;filename=" + Filename));
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)