redirect - C# enter key leads to master page -
this question has answer here:
i have file named fiche.aspx tied master page.
in master page there button click calculete_somehing
.
when pull fiche.aspx , press enter on keyboard, runs calculete_somehing
method in master page.
why happen?
how can associate button event click enter key press?
this code can handle enter keypress on page:
$(document).keypress(function(e) { if(e.which == 13) { // enter pressed , u can call click function $('.calculete_somehing').click(); } });
Comments
Post a Comment