c# - execute a javascript function and button click event on enter keypress at the same time in asp.net -


this code

   <asp:button id="btncompute" runat="server"  onclick="btncompute_click" text=""  onkeypress="return tabe(this,event)"/>  

when enter key press javascript function execute, want execute button click event on server side when user press enter key. how this?

if want execute btncompute_click() function, add onkeypress attribute , separate commands semicolon.

onkeypress="btncompute_click(); return tabe(this,event)" 

Comments

Popular posts from this blog

php - Wordpress: Link a post to posts of another category manually -

delphi xe7 upload/download dropbox file using the rest client and show progress -

java - Get more than One value and display it -