What’s the difference between Response.Write() and Response.Output.Write()?
views:
1640answers:
3
+1
A:
Nothing really.
But. Response.Write takes the stream in the Response.Output property. You could set another Output stream, and in that way instead of writing back to the client, maybe write to a file or something crazy. So thats there relation.
Jesper Blad Jensen aka. Deldy
2008-09-21 17:07:27
A:
They both write to the output stream using a TextWriter (not directly to a Stream), however using HttpContext.Response.Output.Write offers more overloads (17 in Framework 2.0, including formatting options) than HttpContext.Response.Write (only 4 with no formatting options).
The HttpResponse type does not allow direct 'set' access to its output stream.
Jared
2008-09-21 17:17:09