ASP.NET is a server-side technology used for developing dynamic websites and web applications. It is the latest version of active server pages, active server pages is a server-side scripting language and engine used for developing web applications. It is essentially a web-based platform that helps to create a dynamic web-based platform that helps to create dynamic web pages for programmers.
ASP.NET has some specific steps that are to be carried out for an application these steps are called Life Cycle.
ASP.NET Life Cycle is divided into two groups:
1. Application Life Cycle.
2. Page Life Cycle.
Application Life Cycle.
Application Start > Object Creation > HTTP Application > Dispose > Application End
- Application start is a method that can be executed by the webserver when a user makes a request.
- The HTTP requests contain all the information about the current request, like cookies and browser information.
- An object helps to process each subsequent request sent to the application that is created by the web browser.
- Dispose is an event that can be called before the application is destroyed. This helps to release manually unmanaged resources.
- Application end is the final part of the application and this can help to unload the memory.
Page Life Cycle.
- Page Request: When the user requests a page, the server checks the request and then compiles the page and responds to the user. If the page is requested several times then the cache will check the request to see if the output exists or not and after that it will send a response back to the user.
- Page Start: In this phase, two steps are carried out request and response. The request holds all information that was sent when the page was requested and the response holds all the information which send back to the user.
- Page Initialization: In this phase, all the controls on the page are set and each has a particular ID, and themes are applied to the pages.
- Page Load: In this phase, all the controls properties are loaded, and information is set using view state and control state.
- Validation: Validation happens when the page execution goes successful and then it returns true else the execution fails and it returns false.
- Event Handling: Event handling happens in response to validation. In this case, the page is loaded again and displays the same information so the postback event handler is called in order to overcome this problem. This event helps in checking the credentials of the user.
- Rendering: Rendering occurs before all the response information is sent to the user. It also stores all the information sent to the user.
- Unload: Unload phase helps to clean all the unwanted information, it also cleans the memory once the output is sent to the user.
No comments:
Post a Comment