I have a page that has a submit button which causes validation and a cancel button which does not cause validation.
When the cancel button is clicked, the button's click event handler is executed with no problem.
I would like the ESC key to do exactly what the cancel button does.
What we do is to trap the ESC key and then raise the click event for the cancel button.
Our code to handle the ESC key works fine except when the page has a validator.
When the page has a validator, the cancel button click event handler never gets called after the ESC key is pressed.
It works fine when the cancel button is clicked.
It also works fine if we do the same thing and trap any other key.
So it has something to do the ESC key and validation.
Any ideas would be appreciated.
View Complete Post