You might not be passing the correct ID to the client-side script.
Peter Blum helped bring this to my attention in this forum topic [1] when I
had problems with similar events.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL
http://metromilwaukee.com/
URL
http://clintongallagher.metromilwaukee.com/
[1]
http://forums.asp.net/1089636/ShowPost.aspx
"Mike Moore" <Mi*******@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
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?