all form-related server controls need to be inside <form runat='server'>:<form action="holidayresponse.aspx" method="post">===><form action="holidayresponse.aspx" method="post" runat="server">

解决方案 »

  1.   

    楼上的朋友,如果我按照你说的方法,但是调不出来holidayresponse.aspx这个页面文件啊,holidayresponse.aspx文件我是已经输好的啊!
    好象书上解释说:ASP.NET版本的<form>标记只有一个属性,就是runat="server"
    如果使用ASP.NET的版本,就不能调用别的表单了?
      

  2.   

    >>>如果使用ASP.NET的版本,就不能调用别的表单了?yes, normally, <form runat="server"> postbacks to itself, consider to move your code in holidayresponse.aspx to the current page, or after saving the data, do a Response.Redirect("holidayresponse.aspx") or Server.Transfer("holidayresponse.aspx"), seeImplementing Navigation for the User Interface
    http://www.quepublishing.com/articles/article.asp?p=31345&seqNum=6or if you insist, you could do<form  method="post" runat="server" onsubmit="this.action='holidayresponse.aspx';">but make sure in holidayresponse.aspx:
    <%@ Page EnableViewStateMac="false" %>and you have to use Request.Form to retrieve the data