form 加入runat="server",出現錯誤?answer
<form runat="server" method="post" action="DisplayReport.aspx">
<!-- form stuff goes here -->
<asp:button runat="server" text="Submit" />
</form>
Do this:
<form runat="server">
<!-- form stuff goes here -->
<asp:button runat="server" text="Submit" postbackurl="DisplayReport.aspx" />
</form>
insert tag
postbackurl="DisplayReport.aspx"
forward from
http://stackoverflow.com/questions/1398914/validation-of-viewstate-mac-failed-on-postback-to-a-different-page
http://www.csharpaspnetarticles.com/2009/08/cross-page-posting-in-aspnet.html
沒有留言:
張貼留言