Home Articles ASP.Net Articles Response.Write from within a class

Response.Write from within a class

In developing websites in ASP.Net I frequently use Response.Write to debug the code behind, but when using classes you cannot directly access Response.Write.
The method of performing Respone.Write from within a class is to do the following;

HttpContext.Current.Response.Write("Your text")

Last Updated (Tuesday, 25 May 2010 21:53)