Capture enter key in textbox
-
I have a textbox and a button. When i enter something in textbox and press "enter" key, i need to fire the button's click event. Can anyone pls help?
-
I have a textbox and a button. When i enter something in textbox and press "enter" key, i need to fire the button's click event. Can anyone pls help?
-
I have a textbox and a button. When i enter something in textbox and press "enter" key, i need to fire the button's click event. Can anyone pls help?
Set it as Default submit button for the form
<form id="form1" runat="server" defaultbutton="Button2">
-
Wrap a panel around these two controls and then in the Panel write this: DefaultButton="YourButtonIdHere"
Thanks for the reply. But unfortunately it doesnt work. Any other ideas?
-
Set it as Default submit button for the form
<form id="form1" runat="server" defaultbutton="Button2">
Thanks. But the page is a content holder. So I couldnot use the Form tag.
-
Thanks. But the page is a content holder. So I couldnot use the Form tag.