用JS代码实现 aspx: //回车后执行按钮 <script language=javascript> function SubmitKeyClick(button) { if (event.keyCode == 13) { event.cancelBubble = true; event.returnValue = false; button.click(); } } </script>