tags:

views:

58

answers:

1

Hi,I am loading a page into a jquery dialog.

    $(document).ready(function() {
        var $loading = $('<img src="../Images/loading.gif" alt="loading">');

        var $dialog = $('<div></div>').append($loading);
        var $link = $("#<%=lnkCustomise.ClientID %>").one('click', function() {
            $dialog.load($link.attr('href'))
                   .dialog({
                      title: $link.attr('title'),
                      width: 500,
                      height: 550
                    });

            $link.click(function() {
                $dialog.dialog('open');
                return false;
            });

            return false;
        });
    });

The aspx page has 4 buttons.when I click on the buttons it shows me error.

Server Error in ‘/projectname’ Application.

The resource cannot be found.

I want to fire the server side click event of the buttons to perform some functionality.

Please suggest.

A: 

This is what you are looking for i guess

__doPostBack('<%= UniqueIdOfBtn %>', '');
Barbaros Alp
Where do I add this?
Inside <script></script> tags
Barbaros Alp