I am developing web form in asp.net inside it there are drop down list , text box and buttons when I pressed enter after text box it goes direct to buttons how can I stop that I didn't put that button as default button but I need to know why is that happening ?
Asked
Active
Viewed 68 times
0
-
1an answer here which may be of help? http://stackoverflow.com/questions/1473388/asp-net-canceling-the-default-submit-button – NDJ Feb 06 '15 at 15:30
-
You can check if it's set as `DefaultButton` property – Izzy Feb 06 '15 at 15:33
-
1that's the default behaviour for a form... if you ever have a submit button around... you might need to explicitly set the buttons to type="button" – Adrian Salazar Feb 06 '15 at 15:46
-
no it I checked the property before and you can take a look of the html
-
1and asp:ImageButton is designed to behaves by default as a submit button... – Adrian Salazar Feb 06 '15 at 15:51
-
ok there is no way to stop the default behaves??? – rawan Feb 06 '15 at 15:55