SimpleModal, no response from ASP.NET button

Posted by bhsstudio on Stack Overflow See other posts from Stack Overflow or by bhsstudio
Published on 2010-06-09T01:58:55Z Indexed on 2010/06/09 2:02 UTC
Read the original article Hit count: 290

Filed under:
|
|

Hi, I have the following code.

 $(document).ready(function() {
        $('#btnOpen').click(function(e) {
            $('#content').modal({
                onOpen: function(dialog) {
                    dialog.overlay.fadeIn('slow', function() {
                        dialog.data.hide();
                        dialog.container.fadeIn('slow', function() {
                            dialog.data.slideDown('slow');

                        });
                    });
                },
                onClose: function(dialog) {
                    dialog.data.fadeOut('slow', function() {
                        dialog.container.slideUp('slow', function() {
                            dialog.overlay.fadeOut('slow', function() {
                                $.modal.close(); // must call this!
                            });
                        });
                    });
                }
            });

        });
        $('#btnClose').click(function(e) {
            $.modal.close();
        });

If I use <a hrf ="#" id="btnOpen">Open</a>, it works perfectly. If I replace the with an ASP.net Button,
<asp:Button ID="btnOpen" runat="server" Text="Open" />, nothing happened... Any help please?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about jQuery