input文本框外有form标签,当form下只有一个input文本框时回车自动提交表单
解决办法:
1、去掉form。
2、在form下加一个隐藏的input。 (<input id='hiddeninput' type="hidden" style="display:none" />或者<asp:TextBox ID="TextBox1" CssClass="display_none" runat="server"></asp:TextBox>)
3、form 加onsubmit 事件,返回 false。 (<form method="post" onsubmit="return false;"> )