首页 > 编程 > .NET > 正文

page事件顺序(.net2.0)

2024-07-10 13:11:00
字体:
来源:转载
供稿:网友

1.protected sub page_preinit(byval sender as object, byval e as system.eventargs) handles me.preinit
如果有masterpage的话,在这里执行masterpage里面的page事件,事件顺序在这篇文章里有写道

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) handles me.initcomplete
3.protected sub page_preload(byval sender as object, byval e as system.eventargs) handles me.preload
4.protected sub page_load(byval sender as object, byval e as system.eventargs) handles me.load
5.protected sub page_loadcomplete(byval sender as object, byval e as system.eventargs) handles me.loadcomplete
6.protected sub page_prerender(byval sender as object, byval e as system.eventargs) handles me.prerender
7.protected sub page_prerendercomplete(byval sender as object, byval e as system.eventargs) handles me.prerendercomplete
8.protected sub page_savestatecomplete(byval sender as object, byval e as system.eventargs) handles me.savestatecomplete

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表