the recommended way is to either save the data on the server side and use Response.Redirect or use Server.Transferbut if you insist, try to add this line in WebForm3.aspx<%@ Page EnableViewStateMac="false" %>

解决方案 »

  1.   

    错误原因是:若WebForm2.aspx中的form表单的runat属性设为server,则此表单一旦提交到其它面就会出现上述错误。也就是说若某个form设置了runat=server,那么这个form就不能提交到其它页面。这样,你只需要去掉WebForm2.aspx中form的runat属性就可以。但问题是如果这样做,而且你又可能在某个时候提交到WebForm2.aspx页面本身的时候,则WebForm2的后台代码中就不能用IsPostBack来做判断了,当然也可能影响WebForm2.aspx上的服务器控件。因此你得权衡一下。
      

  2.   

    那不是说得把那些WEB的控件改为HTML的了
      

  3.   

    function change_form()
                  {
                     document.Form1.location="WebForm3.aspx";
                     document.Form1.target="mainFrame";
                  }