In ASP, we usually submit the form to another page (accept data page). However, in the server form is usually submitted to this page, if I set it
Copy the codeThe code is as follows:
="";
This will lead to errors in view verification because of security mechanisms. We can also turn off this verification and add the () header in the accept page.
Copy the codeThe code is as follows:
<%@ Page EnableViewStateMac="false" %>
But doing this is not very safe. In fact, 2.0 also provides a way to submit it to other pages. The server button control provides a property: PostBackUrl, which is written in this way.
Copy the codeThe code is as follows:
="";
This will not cause verification errors and is very safe.
--------------------------------------------------------------------------------------
Here are some methods to dynamically modify form properties, which have nothing to do with the above: for example, modify the target property
Normal page:
Copy the codeThe code is as follows:
(()("form1")).Target = "_blank";
or
Copy the codeThe code is as follows:
["target"] = "_blank";
Master page including:
Copy the codeThe code is as follows:
(()("form1")).Target = "_blank";
Front desk modification:
Copy the codeThe code is as follows:
<asp:Button ID="btnSubmit" runat="server" Text="Button" onclick="btnSubmit_Click"OnClientClick="='_blank'" />