ASP.NET Intrinsic Objects

When I heard about Intrinsic objects I thought that it’s a collection of objects and something newly added in .Net framework! And that's because I have no experience working with asp classic. in classic ASP, the framework would take care of instantiating a number of objects such as RequestResponseServer and Application. In asp.net, the framework creates all of these objects as well But they are not simply global variables named "Request" or "Response". Rather, they are properties exposed by classes. as All web forms in asp.net are basically instances of the ASP.Net Page class, it exposes all of this intrinsic objects for you. So naturally when you create a pure class in your asp.net application you don't have these intrinsic objects unless you go through HttpContext.Current. So the asp.net framework define all of these objects (Request, Response, Server, Session, Application , User, cache, Trace) in System.Web namespace for you and  They are the core objects neccesary for working in the asp.net.

 

 For more information take a look at these articles:

  1. http://www.pearsonitcertification.com/articles/article.aspx?p=31275&seqNum=3
  2. http://www.tutorialspoint.com/asp.net/asp.net_server_side.htm


Tags: Asp.Net


comments powered by Disqus