如果双击WebForm以后vs2005可以自动生成下面这个方法
protected void Page_Load(object sender, EventArgs e)
{ }
可是这个方法在什么时候被调用的哪?自动调用吗,如果改动名称,系统就不会调用了,好像只调用名称为Page_Load的方法,那位高手能讲解一下,不胜感激
protected void Page_Load(object sender, EventArgs e)
{ }
可是这个方法在什么时候被调用的哪?自动调用吗,如果改动名称,系统就不会调用了,好像只调用名称为Page_Load的方法,那位高手能讲解一下,不胜感激
解决方案 »
- @Model.CurrentArticle.PubDate.ToString("yyyy-MM-dd HH:mm")
- xmlHttp加载时间
- silentwins wiki14 加分 以前我反复看吴文虎的汉诺塔,今天看了si ,后面看到
- 哪个有技术的高人想干自己的事业 !
- gridview 模板列
- Scott Mitchell 的ASP.NET 2.0教程 下载地址
- asp.net产品如何注册限制
- TextBox如何限定输入的字符串长度?
- 关于DataSet和XML的问题
- c#中如何对hashtable取其某个特定键的值,并输出到页面的某个表格的指定位置?
- 这样绑定对吗?
- 关于char(字符)型和datetime型之间的转换
http://www.microsoft.com/china/msdn/library/webservices/asp.net/dnvs05Internals.mspx
呵呵 一块进步吧
Page_Load 方法在页面Load事件的回调方法
其实一个页面也是一个服务器控件罢了
楼主要熟悉一下C#中代理,事件等概念
http://community.csdn.net/Expert/topic/4666/4666039.xml?temp=.6554682
--------------------------------
Page calls Construct
Page finishes Construct
Page calls New
Page finishes New
Page calls DeterminePostBackMode
Page finishes DeterminePostBackMode
Page calls AddParsedSubObject
Page calls CreateControlCollection
Page finishes CreateControlCollection
Page calls AddedControl
Page finishes AddedControl
Page finishes AddParsedSubObject
ChildControl calls Construct
ChildControl finishes Construct
ChildControl calls New
ChildControl finishes New
* -- Page parses templated properties here and calls Set for those properties on the ChildControl (e.g., <tag:namespace id=?idName? runat=?server? FirstName=?Adam? LastName=?Wayne? DisplayBothNames=?True? />)
Page calls AddParsedSubObject
Page calls AddedControl
Page finishes AddedControl
Page finishes AddParsedSubObject
Page calls AddParsedSubObject
Page calls AddedControl
Page finishes AddedControl
Page finishes AddParsedSubObject
ChildControl calls OnInit
ChildControl raises Init
ChildControl finishes OnInit
ChildControl calls TrackViewState
ChildControl finishes TrackViewState
Page calls OnInit
Page raises Init
Page finishes OnInit
Page calls TrackViewState
Page finishes TrackViewState
Page calls OnLoad
Page raises Load
Page finishes OnLoad
ChildControl calls OnLoad
ChildControl raises Load
ChildControl finishes OnLoad
Page calls EnsureChildControls
Page calls CreateChildControls
Page finishes CreateChildControls
Page finishes EnsureChildControls
Page calls OnPreRender
Page raises PreRender
Page finishes OnPreRender
ChildControl calls EnsureChildControls
ChildControl calls CreateChildControls
ChildControl finishes CreateChildControls
ChildControl finishes EnsureChildControls
ChildControl calls OnPreRender
ChildControl raises PreRender
ChildControl finishes OnPreRender
Page calls SaveViewState
Page finishes SaveViewState
ChildControl calls SaveViewState
ChildControl finishes SaveViewState
Page calls SavePageStateToPersistenceMedium
Page finishes SavePageStateToPersistenceMedium
Page calls CreateHtmlTextWriter
Page finishes CreateHtmlTextWriter
Page calls Render
Page finishes RenderChildren
ChildControl calls Render
ChildControl calls RenderChildren
ChildControl finishes RenderChildren
ChildControl finishes Render
Page finishes RenderChildren
Page finishes Render
ChildControl calls OnUnload
ChildControl raises Unload
ChildControl finishes OnUnload
Page calls OnUnload
Page raises Unload
Page finishes OnUnload
不可以改名字