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")