惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
Spread Privacy
Spread Privacy
I
InfoQ
V
V2EX
S
Schneier on Security
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Latest news
Latest news
S
Secure Thoughts
Project Zero
Project Zero
MongoDB | Blog
MongoDB | Blog
I
Intezer
Security Latest
Security Latest
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
N
Netflix TechBlog - Medium
V2EX - 技术
V2EX - 技术
量子位
T
Threatpost
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
T
Tor Project blog
A
Arctic Wolf
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
L
LINUX DO - 热门话题

博客园 - 用好

pile up english translates that are done by me SQLSEREVER测试题 一个有趣的话题 什么是次级域名、URL转发、MX记录、泛域名解析 关于数据库连接池 关于无法创建aspnet web项目的解决办法 Dotnet面试题(欢迎大家加入新的面试题) The following table shows the core technology areas of the .NET Framework. 如何在UserControl中调用所在页面的ViewState (转) - 用好 - 博客园 ASP.NET中的FILE对象总结 (藏) 经典收集 程序员喝酒文化 (转贴) .net常用的名字空间 关于C++ 请不要做浮躁的人 三、主流中间件技术平台 生活中的智慧 关于用户控件中的事件 什么是base标签
页面装载用户控件时的事件顺序 (转)
用好 · 2005-05-26 · via 博客园 - 用好

在WebForm1页面上直接放置用户控件WebUserControl1时的事件顺序:
WebUserControl1_Init <br>
WebForm1_Init <br>
Page_Load <br>
WebUserControl1_Load <br>
WebForm1_PreRender <br>
WebUserControl1_PreRender <br>
WebUserControl1_Unload <br>
WebForm1_Unload <br>

在WebForm1页面的OnInit方法中用代码Load用户控件WebUserControl1时的事件顺序:
WebForm1_Init : OnInit
WebForm1: Loading controls
WebUserControl1_Init : OnInit
WebForm1: added to Controls
WebForm1: LoadViewState
WebUserControl1: LoadViewState
WebUserControl1: LoadPostData Begin
WebUserControl1: LoadPostData End
WebForm1_PageLoad: OnLoad after base's Onload.
WebUserControl1_Load: after base's OnLoad
iWebUserControl1: RaisePostDataChange
WebForm1: OnPreRender
WebUserControl1: OnPreRender
WebForm1: SavedViewState
WebUserControl1: SaveViewState

在WebForm1页面的Page_Load方法中用代码Load用户控件WebUserControl1时的事件顺序:
WebForm1_Init : OnInit
WebForm1: LoadViewState
WebForm1_PageLoad: OnLoad after base's Onload.
WebForm1: Loading controls
WebUserControl1_Init : OnInit
WebUserControl1: LoadViewState
WebForm1: added to Controls
WebUserControl1_Load: after base's OnLoad
WebUserControl1: LoadPostData Begin
WebUserControl1: LoadPostData End
iWebUserControl1: RaisePostDataChange
WebForm1: OnPreRender
WebUserControl1: OnPreRender
WebForm1: SavedViewState
WebUserControl1: SaveViewState


在WebForm1页面的Button1_Click事件中用代码Load用户控件WebUserControl1时的事件顺序:
WebForm1_Init <br>
Page_Load <br>
Button1_Click <br>
WebUserControl1_Init <br>
WebUserControl1_Load <br>
WebForm1_PreRender <br>
WebUserControl1_PreRender <br>
WebUserControl1_Unload <br>
WebForm1_Unload <br>

在WebForm1页面的Page_Load事件中用代码Load用户控件WebUserControl1,WebUserControl1又在Page_Load事件中用代码Load用户控件WebUserControl2时的事件顺序:
WebForm1_Init <br>
Page_Load <br>
WebUserControl1_Init <br>
WebUserControl1_Load <br>
WebUserControl2_Init <br>
WebUserControl2_Load <br>
WebForm1_PreRender <br>
WebUserControl1_PreRender <br>
WebUserControl2_PreRender <br>
WebUserControl2_Unload <br>
WebUserControl1_Unload <br>
WebForm1_Unload <br>