Fundamental properties in The Page Class : Page Class « Page Lifecycle « ASP.NET Tutorial






Every web page is a custom class that inherits from System.Web.UI.Page. 

Property          Description

IsPostBack        Boolean property 
                  indicates whether this is the first time the page is being run(false) or 
                  whether the page is being resubmitted in response to a control event. 
                  
EnableViewState   When set to false, this overrides the EnableViewState property of the 
                  contained controls, thereby ensuring that no controls will maintain state information.

Application       This collection holds information that's shared between all users in your website. 
                  You can use the Application collection to count the number of times a page has been visited. 

Session           This collection holds information for a single user. 
                  Uou can use it to store the items in the current user's shopping basket on an e-commerce website. 

Cache             This collection stores objects that are time-consuming to create
                  
Request           This refers to an HttpRequest object. 
                  You can use the HttpRequest object to get information about the user's browser
                  
Response          This refers to an HttpResponse object

Server            This refers to an HttpServerUtility object

User              If the user has been authenticated, this property will be initialized with user information.








5.1.Page Class
5.1.1.Fundamental properties in The Page Class
5.1.2.aspx page inherits from a 'Page' class (C#)
5.1.3.aspx page inherits from a 'Page' class (vb.net)
5.1.4.Expose the control through a page property
5.1.5.Page.ErrorPage
5.1.6.Page.HasControls
5.1.7.Is page valid
5.1.8.Page.ResolveUrl