Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
4.33/5 (3 votes)
See more:
How assign the short cut key in asp.net web application


short cut keys for

buttons
menu bar
textbox focus






thanks in advance

Dineshkumar R
Posted

their has some limitations because of the browser limiting some of the shortcut keys. Thus it will not respond as it is in the applications.

JavaScript and Shortcut Keys[^]
http://www.openjs.com/scripts/events/keyboard_shortcuts/[^]
http://www.scottklarr.com/topic/126/how-to-create-ctrl-key-shortcuts-in-javascript/[^]
 
Share this answer
 
Try this

Keyboard Shortcut in ASP.NET[^]

ASP.NET Keyboard Shortcut Controls [^]

EDIT
--------------------
AccessKey is property to set shortcut key for controls.
<asp:Button AccessKey="S" ID="btnSubmit" runat="server">

Now press ALT + S to trigger the button.

Also you can use the javascript for the same task. Check the first link.
 
Share this answer
 
v2
Comments
R_D_K 9-May-11 3:38am    
its not working how to enable keyboard short cuts
thatraja 9-May-11 3:50am    
check my updated answer. BTW check firefox error console for any error message, if yes then mention that.
R_D_K 9-May-11 4:43am    
this one also not working (no error message displayed)
thatraja 9-May-11 5:00am    
For your information I gave you right & working solution. But you said it's not working for you. Better post your code in your question. At least you might save your time by included your code in your question instead of down-voted this answer. OK let us know after include your code in your question.
thatraja 10-May-11 13:21pm    
BTW what's the status man? you got solution?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900