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

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -