I am trying to fire a specific asp: button onclick event when I press the enter key in a specific asp: textbox control.
Another factor to consider is that the button is inside the asp: Login control template.
I do not know how to do this, suggestions on a postcard, please.
You can see the property of DefaultButtonthe control panel.
DefaultButton
DefaultButton . DefaultButton = "btnSubmit" - :
Page.Form.DefaultButton = "btnSubmit"
HtmlForm.DefaultButton
javascript. jQuery.
- ( , ):
$('#myTextBox').keypress(function(e){ if(e.which == 13) $('#myBtn').click(); });
: , jQuery , .
, , " ", , " ", , DefaultButton asp: panel