October 2010
Intermediate to advanced
1920 pages
73h 55m
English
When you add code to an ASP.NET page, you are adding code to an instance of the Page class. The Page class exposes several ASP.NET intrinsic objects such as the Request, Response, Cache, Session, and Trace objects.
If you want to use these objects within a component, you need to do a little more work. Realize that when you create a component, you are not creating an ASP.NET component. In this chapter, we create .NET components, and a .NET component can be used by any type of .NET application, including a Console application or Windows Forms application.
To use the ASP.NET instrinsics in a component, you need to get a reference to the current HtppContext. The HttpContext object is the one object available ...