15 Ocak 2007 Pazartesi

ASP Net Error: Response is not available in this context

When using the response object from an aspx page, its codebehind class or a
user control, the response object is directly available because all these
derive from the page object more or less distant.

When using the response object in your own class, the object is not readily
available, but you can still access it:

HttpContext.Current.Response.Write("Hello World");

Hiç yorum yok: