ASP. NET-Application Life Cycle Principle

Source: Internet
Author: User

/* Author: Jiangong SUN */Today, I want to share the knowledge about IIS, Application Life Cycle, request handling and so on. ASP. NET web sites are developed with Web Forms, MVC, Web Pages and hosted in Internet Information Server (IIS ). when there is a page request, for example: http://www.example.com/index.aspx , IIS will use its Internet Server Application Programming Interface (ISAPI) IIS will decide that the request will be treated by aspx (active server pages), ashx (active server handlers ), ascx (active server controls) or asmx (active server methods ). if you want to treat any custom type of files, you need to create a custom handler and register it to IIS. the request handling process are Request-> IIS-> ISAPI-> Application Domain-> Http Runtime-> HttpContext-> MHPM (HttpModule, HttpHandler, Page life, HttpModule) ASP. NET Web Forms Page life cycle is different from ASP. net mvc. in web forms, page life cycle model is: ViewState and PostBack data are loaded in Page_PreLoad event. and Validate and Event are after Page_Load event. whereas in ASP. net mvc it's more like: There is not any code behind for pages in MVC. so, the page life cycle is totoally different. I hope you enjoy this article.

Related Article

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.