Canceling the default submit button in ASP.NET
I have an ASP.NET application where there’s a few ASP.NET buttons and several plain HTML buttons. Anytime there’s a textbox where a user hits enter, the ASP.NET button tries to submit the form.
I have an ASP.NET application where there’s a few ASP.NET buttons and several plain HTML buttons. Anytime there’s a textbox where a user hits enter, the ASP.NET button tries to submit the form.
I have an ASP.NET web page with a Login control on it. When I hit Enter, the Login button doesn’t fire; instead the page submits, doing nothing.
I have an asp.net panel with a default button setting but the button is never trigger when hitting the ENTER button. I searched SO for this question, but could not find any response that works.