如果你在页面放置了任何RUNAT=SERVER的控件,就必须有一个RUNAT=SERVER的FORM来包容它们。不然就会出这种错误。你应该在<FORM RUNAT=SERVER中再放一个不加RUNAT的FORM。设置其ACTION属性指向新的页面。

解决方案 »

  1.   

    try one of the following methods, althought it is not recommended:1. 
    <form runat="server">
    ...........
    </form>inside your code, do
    Server.Transfer("another.aspx",true);add this line at the top of "another.aspx":
    <%@ Page EnableViewStateMac="false" %>2. 
    <form runat="server" onsubmit="this.action='another.aspx';return true;">
    ...........
    </form>add this line at the top of another.aspx:
    <%@ Page EnableViewStateMac="false" %>
      

  2.   

    <form runat="server">
    <form action="holidayresponses.aspx" method="post">
    .
    .
    .
    .
    </form>
    </form>
    这样写是不行的,页面还是停在原来的页面.
      

  3.   

    看来HTML FORM应该放在 <form runat=server> .... </form>的外面。嵌套是不行的。