Method 1: Copy code The code is as follows: <br>if(event.keyCode==13) <br>{ <br>var button=document.all("<%=ButtonAddorUpdate.ClientID %> "); <br>button.focus(); <br>button.click(); <br>} <br> Method 2: Copy code The code is as follows: <br>if(event.keyCode ==13) <br>{ <br>var button=document.getElementById("noUseButton"); <br>button.focus(); <br>button.onclick(); <br>} <br>< /script> <br><br><script> <br><br>function noClick() <br>{ <br>return false; <br>} <br> Remarks: Make the control invisible to the userOne: Hidden attributesTwo: Put it outside the interfaceMethod three: Shield Page Enter event Add the following content to the Form tag: Copy code The code is as follows: method="post" onkeydown="if(event.keyCode==13) return false;"