开发者

Page not submitting in Firefox

开发者 https://www.devze.com 2022-12-10 02:50 出处:网络
I\'ve a user control registered in an aspx page. User control has a textbox a开发者_运维知识库nd a submit button.

I've a user control registered in an aspx page. User control has a textbox a开发者_运维知识库nd 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?


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


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

Replace submitbtn with your asp:button id.


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>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号