Hello,
I want to post the page when the user hits ENTER key. For that, written a client-side function to handle the keypress. What happened is, this function works well in Internet Explorer but when execute the same in firefox, the keypress event is not properly triggered in all times.
I attached sample code snippet.
Any help is appreciated.
Thanks in advance.
I want to post the page when the user hits ENTER key. For that, written a client-side function to handle the keypress. What happened is, this function works well in Internet Explorer but when execute the same in firefox, the keypress event is not properly triggered in all times.
I attached sample code snippet.
function ClientKeyPressing(sender, eventArgs) |
{ |
var charCode = eventArgs._domEvent.keyCode; |
if(charCode == 13) |
{ |
__doPostBack('<%=lbnSubmit.UniqueID%>',''); |
} |
} |
Any help is appreciated.
Thanks in advance.