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")
Response.Write from within a class
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.