在asp.net页面中按回车会触发默认的按钮,如何能够做到按回车不触发该按钮呢?
可以在页面中加入:
<input type="image" width="0" style="border:0" onclick="return false" />
注意加载其他的input前面
可以在页面中加入:
<input type="image" width="0" style="border:0" onclick="return false" />
注意加载其他的input前面