JQuery UI Dialog and OnClick event
<p>I have a JQuery UI Dialog which I have put an ASP.NET button on.  I need to be able to call a server side OnClick event from this, but it is never called.  Here is my Dialog, can somebody help?</p>

<pre><code>&lt;div id="dialogWrapper" runat="server"&gt;
    &lt;div style="height: auto; width: auto;" id="dialog"&gt;
        &lt;table&gt; 
            &lt;tr&gt;
                &lt;td width="300px" valign="top"&gt;
                    Current Documents :
                &lt;/td&gt;
                &lt;td width="300px" valign="top"&gt;
                    &lt;table&gt;
                        &lt;tr&gt;
                            &lt;td&gt;
                                Upload Document :
                            &lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr /&gt;&lt;tr /&gt;
                        &lt;tr&gt;
                            &lt;td&gt;
                                &lt;asp:FileUpload id="fileUploadControl" runat="server" Width="200px" /&gt;
                            &lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr /&gt;&lt;tr /&gt;
                        &lt;tr&gt;
                            &lt;td&gt;
                                &lt;asp:Button  ID="btnUploadFile" runat="server" OnClick="btnUploadFile_Click" Text="Upload File" /&gt;
                            &lt;/td&gt;
                        &lt;/tr&gt;
                    &lt;/table&gt;

                &lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;&lt;br /&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>EDIT : Here is how the dialog is being created :</p>

<pre><code>$(document).ready(function() {

    $('#&lt;%=dialogWrapper.ClientID %&gt;').dialog({
        autoOpen: false,
        height: 250,
        width: 600,
        modal: true,
        title: "Upload/Open Files",
        show: "drop"
    });

});
</code></pre>
