Loading a page into a dialog with ASP .Net Buttons doesnt fire button click event
<p>I am loading a page into a jquery dialog.</p>

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

        var $dialog = $('&lt;div&gt;&lt;/div&gt;').append($loading);
        var $link = $("#&lt;%=lnkCustomise.ClientID %&gt;").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;
        });
    });
</code></pre>

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

<p>Server Error in ‘/projectname’ Application.</p>

<p>The resource cannot be found.</p>

<p>I want to fire the server side click event of the buttons to perform some functionality. </p>

<p>Please suggest.</p>
