Call Jquery dialog on dynamically created button
<p>I am creating dynamic button on fly, and adding handler to it.
 AddHandler btnUpdate.Click, AddressOf ButtonUpdate_Click
i am using below code to call jquery dialog, in buttonupdate_click procedure</p>

<p>lblJavaScript.Text = 
"showDialog('Confirm');"</p>

<p>Below is my HTML code,</p>

<pre><code>    $(document).ready(function () {
        //setup new person dialog
        $('#Confirm').dialog({
            modal: true,
            autoOpen: false,
            draggable: true,
            width: 'auto',
            height: 'auto',
            title: "Add New Person",
            open: function (type, data) {
                $(this).parent().appendTo("form");
                $('.ui-widget-overlay').hide().fadeIn();
            },
            show: "fade",
            hide: "fade"
        });


    });

    function showDialog(id) {
        $('#' + id).dialog("open");

    }

    Dim btnUpdate As New Button btnUpdate.ID = "btn+" &amp; GetID(intDynamicAttributeID).ToString 
btnUpdate.Text = "Update"
     AddHandler btnUpdate.Click, AddressOf ButtonUpdate_Click In ButtonUpdate_Click procedure
</code></pre>

<p>I am not able to open dialog box, any help would be appreciated 
When i put button in design mode and call this in button click event it work perfectly.</p>

<p>Regards</p>
