Ehsan Ghanbari

Experience, DotNet, Solutions

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. 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 defines all of these objects (Request, Response, Server, Session, Application, User, cache, Trace) in System.Web namespace for you and  They are the core objects necessary 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

About Me

Ehsan Ghanbari

Hi! my name is Ehsan. I'm a developer, passionate technologist, and fan of clean code. I'm interested in enterprise and large-scale applications architecture and design patterns and I'm spending a lot of my time on architecture subject. Since 2008, I've been as a developer for companies and organizations and I've been focusing on Microsoft ecosystem all the time. During the&nb Read More

Post Tags
Pending Blog Posts
Strategic design
Factory Pattern
time out pattern in ajax
Selectors in Jquery
Peridic pattern
How to use PagedList In asp.net MVC
Redis as a cache server
Domain driven design VS model driven architecture
How to query over Icollection<> of a type with linq
What's the DDD-lite?
comments powered by Disqus