考虑下面的代码 -
<form id="Form1" runat=server defaultbutton="cmdclick" style="height: 9%;">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XT4SGK2B4H954">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</form>
内部表单未提交。单击它会刷新页面。什么是更好的方法?
注意:项目在 ASP.NET 中。