Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Saving XmlDocument object to client computer as a file
User Name
Password
REGISTER NOW! Mark Forums Read

Add blocked Because of Adult Content

Reply
1 8th March 07:49
aranarth
External User
 
Posts: 1
Default 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
litteral 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.
  Reply With Quote


2 8th March 07:50
axel dahmen
External User
 
Posts: 1
Default Saving XmlDocument object to client computer as a file


How are you displaying it? Are you sending the XML file as XML file to the
user? In that case he/she can simply save the file from the browser. This is
the only way. Probably you might want to change the HttpResponse.ContentType
property to "text/xml" before sending the output.

HTH,
Axel Dahmen

--------
"Aranarth" <Aranarth@discussions.microsoft.com> schrieb im Newsbeitrag
news:A5750C06-F91C-4D58-AFB5-B24EFC3E7AD6@microsoft.com...
  Reply With Quote


Reply


Thread Tools
Display Modes




666