ASP.NET, Response.Write and Response.Output.Write - know the difference

Skip Navigation LinksIrocon > Blog > 2004 > January, 2004 > January 07, 2004 > ASP.NET, Response.Write and Response.Output.Write - know the difference

ASP.NET, Response.Write and Response.Output.Write - know the difference

Author: Scott Hanselman
The short answer is that the latter gives you String.Format-style output and the former doesn't. The long answer follows.

In ASP.NET the Response object is of type HttpResponse and when you say Response.Write you're really saying (basically) HttpContext.Current.Response.Write and calling one of the many overloaded Write methods of HttpResponse...
more...

Last Updated:Thursday, September 02, 2010By:alferoSource#

Would you like to comment?

Sign in with your OpenID. If you do not know what OpenID is, find out.