ASP.NET page_init event?

后端 未结 7 1419
梦谈多话
梦谈多话 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:24

    Just declare this in your code behind:

    protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }
    
    0 讨论(0)
提交回复
热议问题