Professional Documents
Culture Documents
This article explores a comparison chart between ASP.NET 1.x and ASP.NET 2.0. The
following table explains some of the differences between ASP.NET 1.X and ASP.NET
2.0.
The Inherits attribute defines the name of the class that will
be created, and by default, use the page name as the basis for
creating the class name.
The @Page directive in ASP.NET 2.0 has several new
attributes. These attributes allow developers to control new
framework features such as personalization and theming. The
Page class in ASP.NET 2.0 also has new properties, methods,
and events.
Properties
The properties of the Page object fall into two distinct groups:
intrinsic objects and page-specific properties. Intrinsic
objects include references to environmental standalone objects
such as Cache, User, and Trace. They also include references
to the classic intrinsic objects that form the HTTP context, such
as Session, Application, and Request. Page-specific
properties are all the properties that affect or describe the state
of the page, for example, IsPostBack, EnableViewState, and
SmartNavigation.
Methods