1.Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) 處理 Me.PreInit
如果有MasterPage的話,在這裡執行MasterPage裡面的頁面事件,事件順序在這篇文章裡有補充
1.Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
2.Protected Sub Page_InitComplete(ByVal sender As Object, ByVal e As System.EventArgs) 處理 Me.InitComplete
3.Protected Sub Page_PreLoad(ByVal sender As Object, ByVal e As System.EventArgs) 處理 Me.PreLoad
4.Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) 處理 Me.Load
5.Protected Sub Page_LoadComplete(ByVal sender As Object, ByVal e As System.EventArgs) 處理 Me.LoadComplete
6.Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) 處理 Me.PreRender
7.Protected Sub Page_PreRenderComplete(ByVal sender As Object, ByVal e As System.EventArgs) 處理 Me.PreRenderComplete
8.Protected Sub Page_SaveStateComplete(ByVal sender As Object, ByVal e As System.EventArgs) 處理 Me.SaveStateComplete