How to disable the Enter key pressed form post-back for all page controls?

 Posted by vishalneeraj-24503 on 7/9/2014 | Category: ASP.NET Interview questions | Views: 2496 | Points: 40
Answer:

Simply add below code in the body tag as:
<body onkeydown = "return (event.keyCode!=13);">

Then it will be disabled for all controls on the page.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response