ASP.NET let the same page different text boxes Enter different events

xiaoxiao2021-03-06  42

In ASP.NET, if there are multiple text boxes in the same page, press the "Enter" button in each text box, will respond to the first Button's Click event, how can I pay freely to press the Enter key without triggering Unexpected response or how to get a different response in different places, this problem has been troubled, and it is not completely solved until there is currently, first discusses the income and share with you, with a view to throwing brick jade. First, press the Enter key in the page without trigger a response if the entire page does not need to set up the carriage return, I hope to press the Enter key in any place in the page does not cause a response, and the full page will be turned through. For Tab, the method is to add the following code in the file head: