Sunday, December 6, 2009

HttpContext in ASP.Net

The HttpContext object in the System.Web namespace encapsulates all of the information related to one request and allows you to access that information within or outside of the actual aspx page that is being processed. 


Let's Check Some Properties about the HttpContext Class: 


The static property Current on the HttpContext class can be useful whenever the flow of control leaves the code in your Page derived web form. Using this property you can reach out and magically grab the current Request, Response, Session, and Application objects (and more) for the request you are servicing





No comments:

Post a Comment