Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
When I am create a xml file from my project then I want to appear a SAVE AS dialog box for save the file to a location . But I didnot got any idea how can i find a Save As dialog box.Please give me a suggestion how can I find it.
Posted
Comments
Robert Welliever 31-Oct-14 4:06am    
There isn't a save dialog box for ASP. You have to flush whatever file you want to the output stream and the browser will pop up a dialog box on its own.

 
Share this answer
 
Comments
Robert Welliever 31-Oct-14 4:10am    
That's not a Save As Dialog in ASP.NET. That's flushing a file to the output stream like I recommended in the comments. The dialog box belongs to the browser.
If xmlDocument is your XML document object, then use

C#
Response.ContentType = "text/xml";
Response.ContentEncoding = System.Text.Encoding.UTF8;
xmlDocument.Save(Response.Output);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900