Tutorial :Page not submitting in Firefox



Question:

I've a user control registered in an aspx page. User control has a textbox and a submit button. Ascx code of user control is placed under a asp:panel. Using firefox, when user hits enter key, the page is not submitting to the server.However, this works fine in IE browsers. Am i missing something here?


Solution:1

Try setting defaultbutton="urbuttonid" to the asp:panel


Solution:2

Set property DefaultButton="submitbtn" for asp:panel.

Replace submitbtn with your asp:button id.


Solution:3

Yea, what the others say. You've probably got a submit button earlier in the page that Firefox is associating you enter key press with.

Use:

  <asp:panel .... DefaultButton="btSubmit">       <asp:textbox ... />       <asp:button id="btSubmit" ... />      </asp:panel>  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »