ASP.NET page_init event?

后端 未结 7 1432
梦谈多话
梦谈多话 2021-02-01 17:52

I am using ASP.NET 3.5 and i used earlier 1.1 i am having difficulty to find where can i attach/declare the page init event ?

In 1.1 there was auto generated code which

7条回答
  •  余生分开走
    2021-02-01 18:16

    You don't have to bind the event. Just create an event handler for it, and it will be bound automaticlaly:

    protected void Page_Init(object sender, EventArgs e) {
      ...
    }
    

提交回复
热议问题