Asp. NET's life cycle

Source: Internet
Author: User

I mainly refer to this article for ASP. NET application and page life cycle

1. The user sends a request from the browser to the Web server, and the server checks the requested extension to determine which ISAPI extension handles the request.

The. aspx,. ascx,. ashx, and. asmx classes are mapped to them and can be processed by ASP.

2.ASP. NET receives the first request for any resource, the Applicationmanager class creates an application domain. Then in the application domain, an instance is created for the Hostingenvironment class.

Application domains provide application isolation for global variables and allow each application to be uninstalled separately.

This instance provides access to information about the application, such as the name of the folder where the application is stored.

After the 3.HostingEnvironment class creates an instance, ASP. NET creates and initializes core objects, such as Httpcontext,httprequest,httpresponse.

4. After initializing the core, launch the application through an instance of the HttpApplication class.

  httpapplication class and uses the derived class to represent the application. "Data-guid=" 303b1a8fce57c312b0dfa728c7b3d00d "> If the application has Global.asax files, ASP. NET creates An instance of the Global.asax class (derived from the HttpApplication class) and uses that derived class to represent the application .

httpapplication class and uses the derived class to represent the application. "Data-guid=" 303b1a8fce57c312b0dfa728c7b3d00d "> above 4 steps such as

httpapplication class and uses the derived class to represent the application. "Data-guid=" 303b1a8fce57c312b0dfa728c7b3d00d ">5. Request MHPM by HttpApplication pipeline (module, Handler, page and Module event) /span>

httpapplication class and uses the derived class to represent the application. "Data-guid=" 303b1a8fce57c312b0dfa728c7b3d00d "> as

Asp. NET's life cycle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.