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

 Posted by vishalneeraj-24503 on 1/3/2015 | Category: ASP.NET Interview questions | Views: 2547 | Points: 40

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