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">
>>>如果使用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
好象书上解释说:ASP.NET版本的<form>标记只有一个属性,就是runat="server"
如果使用ASP.NET的版本,就不能调用别的表单了?
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