Tuesday, September 21, 2010

button click event oddity in FireFox(enter key press fire hidden button event in firefox asp.net)

solution: declare the hidden button with UseSubmitBehavior="false": this will make the button postback with the ASP.NET postback model and this should do the trick.
<div style="display:none;">
    <asp:Button id="btnHidden" runat="server"
                OnClick="btnHidden_Click"
                UseSubmitBehavior="false"
                />
div>

No comments:

Post a Comment