i think u will need to add a javascript call to the asp.net control
e.g. onclick="return myJsMethod();"
in the myJsMethod();
u need to return "false" if u do not want to do a asp.net postback
and "true" if u do want to postback to occur.
"Mike Moore" wrote:
Quote:
We are using the "onkeypress" event in Javascript to determine when
the user hits a particular key. This works well unless an ASP.NET
control (such as a textbox) has focus. In this case the onkeypress
event does not fire. Unfortunately, our need is to handle key presses
when a control does have focus, so we are kind of stuck right now.
My question is are we approaching this in the correct way? Is there
a better way to do this? |