Home > Education > ASP.NET Tutorial for Beginners|Application|PAGE Life Cycle

ASP.NET Tutorial for Beginners|Application|PAGE Life Cycle

Added: (Wed May 29 2019)

Pressbox (Press Release) - ASP.NET Tutorial for Beginners|Application|PAGE Life Cycle

What is asp.net??
ASP.Net is a web development platform which is given by MicrosoftIt.IT is used for creating web-based applications. ASP.Net was first released in the year 2002.it allow programmers to build dynamic web sites.ASP.Net applications can also be written in a variety of .Net languages. These include C#, VB.Net, and J#.The full form of ASP is Active Server Pages, and .NET is Network Enabled Technologies.

ASP.NET Web Forms Model
ASP.NET framework should in store information about the state of the application, which included:
1. Page state
2. Session state

The ASP.NET Component Model
The ASP.NET component model provides different building blocks of ASP.NET pages. normally it is an object model, which describes:
1.Server side counterparts of almost all HTML elements or tags, such as

2.Server controls, which help in developing complex user-interface.


What is ASP.Net Lifecycle?

When an ASP.Net application is live, there are some number of steps which are carried out. These number of steps make up the lifecycle of the application.
ASP.NET life cycle tells that, how ASP.NET processes pages to produce dynamic output.

1.The application and its pages are instantiated and processed.
2.ASP.NET compiles the pages dynamically

The ASP.NET life cycle have two groups:
1.Application Life Cycle
2.Page Life Cycle

ASP.NET Application Life Cycle
The application life cycle has the following stages:

1.User makes a request for deveoping application resource. Browser sends this request to the web server.

2.A unified pipeline receives the first request and the following things take place:
-An object of the class Application Manager is created.
-An object of the class Hosting Environment is produced to provide information regarding the resources.
-Top level items in the application are compiled.
-Response objects are created. The application objects such as HttpContext, HttpRequest and HttpResponse are created and initialized.
-An instance of the HttpApplication object is created and assigned to the request.
-The request is processed by the HttpApplication class.

ASP.NET Page Life Cycle
The page life cycle phases are:
2.Instantiation of the controls on the page
3.Restoration and maintenance of the state
4.Execution of the event handler codes
5.Page rendering

An ASP.NET page has different stages which are:
1.Page request-
When ASP.NET gets a page request, it decides whether to parse and compile the page.

2.Starting of page life cycle -
At this stage, the Request and Response objects are set. If the request is an old request or post back, the IsPostBack property of the page is set to true. The UICulture property of the page is also approve.

3.Page initialization-
At this stage the controls on the page are assigned unique ID by setting the UniqueID property and the themes are followed.

4.Page load -
At this stage the control properties are set using the view state and control state values.

Validate method of the validation control is called and on its successful execution, the IsValid property of the page is set to correct.

6.Postback event handling-
If the request is a postback and the related event handler is invoked.

7.Page rendering-
At this stage, the view state for the page and all controls are saved.

8.Unload -
The rendered page is sent to the client , such as Response and Request, are unloaded and all cleanup done.

For more details visit us:

Submitted by:
Disclaimer: Pressbox disclaims any inaccuracies in the content contained in these releases. If you would like a release removed please send an email to remove@pressbox.com together with the url of the release.