I would like to submit my form when user presses enter in a specific field. This should be the OnKeyPress event, but I need to only perform the action for the Enter Key. Can someone offer me a hint or an example.
This way the server is called only when the user presses the return / enter key, and not on every keystroke, and this makes an huge difference in performance.
I have another question. In my code, I use Events.OnKeyDown with multiple key. For the F1 to F12 key, i want trap the keys with this event and disable F1 to F12 keys for the browser. What is the best way for this ?