开发者

which format of XmlTextWriter for answer xmlhttprequest

for answer a xmlhtt开发者_如何学编程prequest in .ashx file with xml that created with XmlTextWriter class how I must Outputting it ? to a file/string/memory ?


If I understand your question correctly, then you want to write to Response.OutputStream. You can do this by providing the stream as parameter when instantiating the XmlTextWriter.

You may want to clear and/or set appropriate response headers, too.


Ultimately you want to be writing it to the client, so something like

context.Response.OutputStream

would be a reasonable output stream to write to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜