Intercepting Keystrokes
-
Is it possible to intercept keystrokes in asp.net? i have someone who wants a specific button that wants to be the enter button to fire that event. I know in vb.net for windows applications that you can basically choose which button you want. If someone out there has something, it would be very useful.
-
Is it possible to intercept keystrokes in asp.net? i have someone who wants a specific button that wants to be the enter button to fire that event. I know in vb.net for windows applications that you can basically choose which button you want. If someone out there has something, it would be very useful.
Javascript events will be your best bet. OnKeyDown and the like.
-
Javascript events will be your best bet. OnKeyDown and the like.
How would i be able to fire a method in code behind if im using javascipt?
-
How would i be able to fire a method in code behind if im using javascipt?
-
How would i be able to fire a method in code behind if im using javascipt?
Don't use the code behind for this. Otherwise you will have to do a post back on each key stroke and you user will hate you. Use Javascript. Then you can do a form.submit to fire the post back or some other mechinisum.