internet explorer - IE 8 - ASP.NET form not submitting when user presses enter key -


I have a simple form written in asp.net / c # and when trying to enter the input box of the form I have applied a fix for the previous bug, where pressing will only refresh the page without submitting form data, but now there is nothing just to enter, the fix is ​​below:

  & gt; Div style = "display: none" & gt; & Lt; Input type = "text" name = "hidden text" /> & Lt; / Div & gt;  

Anyone know about this or an alternate solution?

I assume that you have a button that is on your page, as well as for it There is an event handler.

Have you tried wrapping your form (with the button) inside a panel control and the default button attribute?

i.e.

  & lt; Asp: panel id = "pnlMyForm" runat = "server" DefaultButton = "btnMyButton" & gt; & Lt; Asp: textbox id = "txtInput" runat = "server" /> & Lt; Asp: button id = "btnMyButton" text = "submit" runat = "server" /> & Lt; / ASP: Cell & gt;  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -