ASP.NET - Application Life Cycle Principle
来源:互联网 发布:im域名 编辑:程序博客网 时间:2024/06/05 08:55
/*
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.
references:
http://msdn.microsoft.com/en-us/library/ms178473.aspx
http://msdn.microsoft.com/en-us/library/ms178472%28v=vs.100%29.aspx
http://wiki.asp.net/page.aspx/1512/
- ASP.NET - Application Life Cycle Principle
- ASP.NET Application and Page Life Cycle
- ASP.NET 应用程序生命周期(ASP.NET Application Life Cycle)
- ASP.NET application and page life cycle -2
- ASP.NET Complete Life Cycle
- ASP.NET Page Life Cycle
- Asp.net Page Life-cycle
- The ASP.NET Page Life Cycle
- ASP.NET Page Life Cycle - 1
- ASP.NET Page Life Cycle Overview (2011)
- ASP.NET Page Life Cycle Overview
- ASP.NET Page Life Cycle Overview
- ASP.NET Page Life Cycle Events
- Explain the page life cycle in ASP.NET 2.0
- iOS Application Life Cycle 应用程序生命周期
- iOS Application Life Cycle 应用程序生命周期
- iOS Application Life Cycle 应用程序生命周期
- iOS Application Life Cycle 应用程序生命周期
- C# FileSystemWatcher用法详解
- 雾里看花集锦
- 转载:C++学习指导
- HDU1284--钱币兑换问题 HDU(103)
- struts2入门程序
- ASP.NET - Application Life Cycle Principle
- 对 值班管理系统的一些总结
- Seven habits of effective text editing
- CUDA编程指南阅读笔记(二)
- ANT标签详解
- ORACLE 管理
- Grand Central Dispatch(GCD)
- java命令行下如何设置classpath类路径
- 软件项目开发流程以及人员职责