Get the current HttpResponse

  • Thread starter Thread starter Brett Robichaud
  • Start date Start date
B

Brett Robichaud

Is there any way to get the current HttpResponse object other than directly
from the current Page?

I'm creating a class that will use Response methods in a few small
situations and I don't want to have to pass it the current page. I'm
looking for something that can give me the current page at a very high
level.

-Brett-
 
Simply use this full namespace from within your class:
System.Web.HttpContext.Current.Response
 
Back
Top