因为InitializeComponent()里的内容是自动生成的,它经常由系统自动更新所以
你应该把你的代码加到下面的过程中
override protected void OnInit(EventArgs e)
{
//
// CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();DataGridCol1.DataGrid1.EditCommand+= new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_EditCommand_1); base.OnInit(e);
}
你应该把你的代码加到下面的过程中
override protected void OnInit(EventArgs e)
{
//
// CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();DataGridCol1.DataGrid1.EditCommand+= new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_EditCommand_1); base.OnInit(e);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货