making the 'Enter' button fire the Click event for a button in .NET
hello all,
if, on an ASP.NET page, i have multiple buttons that cause PostBack, how do i make it so that hitting the "Enter" key fires the click event for one of the buttons instead of firing a general postback??
Thanks a lot!
Kenton Taylor
[email protected]
Generate the click event when ENTER key is pressed
In VB.NET, I have a web application and some web forms. One web form has Submit and Cancel buttons in addition to some other textbox controls. I would like to press Enter button and generate the 'Click' event for the submit button. How do I do this using VB.NET?
Does anyone have some source code?