469,576 Members | 1,754 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,576 developers. It's quick & easy.

Saving XmlDocument object to client computer as a file

I am working on a ASP .Net page with a C# back end that displays, and
give the option to save, an XmlDocument object. While displaying the
XML in a literal was easy, I can't figure out how to allow the user to
save the XmlDocument as a file without creating an XML file on the
server. It is important that the XML file is not created server side.

Any insight to my problem would be most appreciated.

Nov 17 '05 #1
2 2252
Stream the XML document to the user.

For example, you might create a specific .ASPX page that, in its Page_Load()
function, generates your XmlDocument in memory, and writes it to the
Response output stream.

Remember to set the correct content type!

"Throne Software" <ma**@thronesoftware.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I am working on a ASP .Net page with a C# back end that displays, and
give the option to save, an XmlDocument object. While displaying the
XML in a literal was easy, I can't figure out how to allow the user to
save the XmlDocument as a file without creating an XML file on the
server. It is important that the XML file is not created server side.

Any insight to my problem would be most appreciated.

Nov 17 '05 #2
Thank you for your help!

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Vikram | last post: by
1 post views Thread by TT (Tom Tempelaere) | last post: by
1 post views Thread by Patrick.O.Ige | last post: by
2 posts views Thread by Al Pilon | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.