HttpApplication 實例。HttpModule.Init、管線事件 (BeginRequest、AuthenticateRequest...EndRequest)。HttpHandler (預設 PageHandlerFactory) 建立頁面類別實例。PreInit→Load→Render→Unload) 執行。// Default.aspx.cs
public class _Default : System.Web.UI.Page
{
private void Page_Load(object sender, EventArgs e) { ... }
}
// Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="_Default" %>
Inherits 屬性)。System.Web.UI.Page。ASP.NET 以管線 + 頁面類別雙層架構處理請求,Module 處理橫切關注點,Handler/頁面處理具體業務邏輯,實現關注點分離。