阅读118 返回首页    go 阿里云 go 技术社区[云栖]


在哪里添加Page_PreInit事件

 

一.在页面的cs类当中写 override vs会智能提示重写OnPreInit
C# code

    protected override void OnPreInit(EventArgs e)
    {
        this.Page.Theme = “blue”;
    }

 

二.手动写入代码
protected override void OnPreInit(EventArgs e)
{
      this.Page.Theme = “blue”;
}

最后更新:2017-04-02 22:15:58

  上一篇:go c#二维数组声明简单例子
  下一篇:go C#泛型基础