views:

104

answers:

1

Hi there!

How can I add some keyboard shortcuts (ctrl/alt/shift + something) to focus textboxes and/or perform button clicks?

And, ss it possible to have a Keyboard shortcut to call some method in my .cs code-behind?

Can anyone me tell me how?

+1  A: 

This needs to be implemented with javascript, I would recommend jQuery. If you google jQuery hotkeys or jQuery keyboard shortcuts etc you should find alot of articles on this.

Chris Marisic
i see... then no functions from codebehind can be called?
Vitor Reis
You can interact with codebehind by either having the keystrokes simulate button presses or interact with any other control that causes postbacks, you can work with AJAX and call web services or you can interact with the page through `[WebMethod]` decorated page methods.
Chris Marisic