梁某人

发展才是硬道理

导航

IsPostBack疑惑

private void Page_Load(object sender, System.EventArgs e)
  {
   if(!IsPostBack)
   {
          ....
   }
}




private void Page_Load(object sender, System.EventArgs e)
  {
   if(IsPostBack) return;
 
   ...
 }


完全是两种执行结果。。。

原来是 asp.net 的影子编译在 Page_Load 后面插了不少代码。。。。

posted on 2005-04-20 02:58  涛仔28  阅读(327)  评论(0编辑  收藏  举报