1
<script for="<%=TextBoxSearchText.ClientID %>" event="onkeydown">
2
if(event.which || event.keyCode)
3
script>
2
3
如果页面只有一个文本框,则需要添加一个隐藏的textbox,<input type="text" style="display:none" />。
具体的原因请参考下面的文章:在IE里敲击Enter键引起页面按钮提交的细微之处
如果页面只有一个文本框,则需要添加一个隐藏的textbox,<input type="text" style="display:none" />。
具体的原因请参考下面的文章:在IE里敲击Enter键引起页面按钮提交的细微之处
相关文章: