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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -