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: 1038 | 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