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




Reply Bookmark and Share
1 8th March 06: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 06: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


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666