一.在页面的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”;
}
时间: 2024-09-19 19:05:32