RT
有说是webconfig有问题的等等,不知道到底是什么错,帮忙看看

解决方案 »

  1.   

    ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "", "alert(这个数字是:" + btn1.Text + ");", true);
    就是这里报错
      

  2.   

    js写错了ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "", "alert(‘这个数字是:" + btn1.Text + "‘);", true);这样试试
      

  3.   

    ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "", "alert(这个数字是:'" + btn1.Text + "');", true);
      

  4.   

    ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "", "alert('这个数字是:" + btn1.Text + "');", true);
      

  5.   

    看错代码了
    ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "", "alert(’这个数字是:" + btn1.Text + "');", true);