I want to handle the Enter key press to fire an "onserverclick" event for an "a" element. In other words, if I clicked on any textbox the "onserverclick" event fires.
Thanks in advance.
If you found my reply useful please mark it as ANSWER or VOTE IT UP if it gave you a key to the solution.
Gamil The Si...
Member
7 Points
10 Posts
Enter key press handling.
Dec 15, 2011 10:07 AM|LINK
Hi everyone,
I want to handle the Enter key press to fire an "onserverclick" event for an "a" element. In other words, if I clicked on any textbox the "onserverclick" event fires.
Thanks in advance.
amit.jain
Star
11225 Points
1815 Posts
Re: Enter key press handling.
Dec 15, 2011 12:09 PM|LINK
Please set defaultbutton property of form in which you put textbox
Refer EnterKey DefaultButton for more info
amiT jaiN
ASP.NET C# VB Articles And Code Examples
Gamil The Si...
Member
7 Points
10 Posts
Re: Enter key press handling.
Dec 18, 2011 08:38 AM|LINK
Many thanks