为什么我的 Page_Load 无论如何都不执行?
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
TextBox1.Text="aaaaaaaa";
Response.Write("hhhhhhhh");
}
}
他好象没有自动产生InitializeComponent中的内容,我手工加了:
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
但是还是不执行Page_Load中的内容,非常紧急请大家帮忙!!!!
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
TextBox1.Text="aaaaaaaa";
Response.Write("hhhhhhhh");
}
}
他好象没有自动产生InitializeComponent中的内容,我手工加了:
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
但是还是不执行Page_Load中的内容,非常紧急请大家帮忙!!!!
private void Page_Load(object sender, System.EventArgs e)
{
TextBox1.Text="aaaaaaaa";
Response.Write("hhhhhhhh");
}
这样呢
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
吗?
只有在Debug状态下才可以打端点调试的!