|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to Send XML to clientI am using VS2005 to develop Asp.Net program.
I use the codes below to create a XML stream: How can I set the Stream to client? //----------------------------------------------------------------------------- MemoryStream sm= new MemoryStream(); dsHealth.WriteXml(sm); It depends in what circumstances (within what method of your code) you
generate that XML. You most probably could use the Response.Write() method to directly write the XML onto the page that the client will see in his browser. Could you tell us more about the context of this XML generation? Show quote "ad" <fly***@wfes.tcc.edu.tw> wrote in message news:%23PBKLxfpGHA.3324@TK2MSFTNGP05.phx.gbl... >I am using VS2005 to develop Asp.Net program. > I use the codes below to create a XML stream: > How can I set the Stream to client? > > > > //----------------------------------------------------------------------------- > MemoryStream sm= new MemoryStream(); > dsHealth.WriteXml(sm); > > > > Thanks,
The content of my XML file is like: - <dsHealth> - <St> <PID>L125412515</PID> ....... Show quote "Francois Bonin [C# MVP]" <thec***@gmail.com> ¼¶¼g©ó¶l¥ó·s»D:ekCF2YopGHA.3***@TK2MSFTNGP03.phx.gbl... > It depends in what circumstances (within what method of your code) you > generate that XML. > You most probably could use the Response.Write() method to directly write > the XML onto the page that the client will see in his browser. > Could you tell us more about the context of this XML generation? > > "ad" <fly***@wfes.tcc.edu.tw> wrote in message > news:%23PBKLxfpGHA.3324@TK2MSFTNGP05.phx.gbl... >>I am using VS2005 to develop Asp.Net program. >> I use the codes below to create a XML stream: >> How can I set the Stream to client? >> >> >> >> //----------------------------------------------------------------------------- >> MemoryStream sm= new MemoryStream(); >> dsHealth.WriteXml(sm); >> >> >> >> > > Oops. I'm sorry I wasn't clear before.
I meant the context in the source code (within what method) where you are trying to send that XML. Show quote "ad" <fly***@wfes.tcc.edu.tw> wrote in message news:eVMhNQupGHA.3600@TK2MSFTNGP04.phx.gbl... > Thanks, > The content of my XML file is like: > - <dsHealth> > - <St> > <PID>L125412515</PID> > ...... > > > > > "Francois Bonin [C# MVP]" <thec***@gmail.com> > ¼¶¼g©ó¶l¥ó·s»D:ekCF2YopGHA.3***@TK2MSFTNGP03.phx.gbl... >> It depends in what circumstances (within what method of your code) you >> generate that XML. >> You most probably could use the Response.Write() method to directly write >> the XML onto the page that the client will see in his browser. >> Could you tell us more about the context of this XML generation? >> >> "ad" <fly***@wfes.tcc.edu.tw> wrote in message >> news:%23PBKLxfpGHA.3324@TK2MSFTNGP05.phx.gbl... >>>I am using VS2005 to develop Asp.Net program. >>> I use the codes below to create a XML stream: >>> How can I set the Stream to client? >>> >>> >>> >>> //----------------------------------------------------------------------------- >>> MemoryStream sm= new MemoryStream(); >>> dsHealth.WriteXml(sm); >>> >>> >>> >>> >> >> > > |
|||||||||||||||||||||||