不熟悉,在c#里面是
if (!this.IsPostBack)
{
Response.Write("ok");}

解决方案 »

  1.   

    可能有两个问题吧:
    1 <%@...AutoWireUp=false...%>   
       改为AutoWireUp=true
    2  sub page_load()
       括号里的参数的次序不能颠倒。sender as object,e as eventargs3 最好加上 if not ispostback then  ..... end if
      

  2.   

    private void InitializeComponent()
    {    
    this.Load += new System.EventHandler(this.Page_Load); }
    看一下是不是this.Load += new System.EventHandler(this.Page_Load);丢了
      

  3.   

    private void InitializeComponent()
    {    
    this.Load += new System.EventHandler(this.Page_Load); }
    看一下是不是this.Load += new System.EventHandler(this.Page_Load);丢了
    ======================================================================
    这种可能性最大
      

  4.   

    应该是chieftech(你叫我爸,我打你妈,这样对吗?) ,wyfwyf2000(讨分-多多益善) 说的原因!!!
      

  5.   

    怎么样? naojin(脑筋) ( ) : wyfwyf2000(讨分-多多益善) ( ) 都说的差不多了,最多也就是这些问题了,再有问题,就奇怪了!
      

  6.   


    private void InitializeComponent()
    {    
    this.Load += new System.EventHandler(this.Page_Load); }
    看一下是不是this.Load += new System.EventHandler(this.Page_Load);丢了=================================
    同意,还有你有没有编译生成一下。
      

  7.   

    就如 wyfwyf2000(讨分-多多益善)  所言,"Web Form Designer generated code" 你的这句暗字体的是不是不存在了??? 它不存在也没关系,但这段代码有没有
       #region Web Form Designer generated code
    override protected void OnInit(EventArgs e)
    {
    //
    // CODEGEN: This call is required by the ASP.NET Web Form Designer.
    //
    InitializeComponent();
    base.OnInit(e);
    }

    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {    
    this.Load += new System.EventHandler(this.Page_Load); }
    #endregion
      

  8.   

    还是重新建一个Web项目设断点调试看行不行~再比较你这个出问题的项目,是哪里有语句丢失
      

  9.   

    同意 hychieftain(不同)
    这样一般能发现问题如果还不行,就可以认为是你vs.net编译器的设置被你那改错了。
      

  10.   

    我用的是vb啊!
    通过我的测试,naojin的答案最准确了!
    这100分大家多少有一些!但另外的100分要给naojin(脑筋)了!
    to脑筋(naojin)
    迟些时候另开帖给分!