calling jquery confirm box on cs file of c#
<p>Below is my jQuery code :</p>

<pre><code>&lt;meta charset="utf-8"&gt;
&lt;title&gt;jQuery UI Dialog - Modal confirmation&lt;/title&gt;
&lt;link href="Styles/jquery.ui.all.css" rel="stylesheet" type="text/css" /&gt;
&lt;link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"/&gt;
&lt;script src="Scripts/jquery-1.6.2.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="Scripts/jquery.bgiframe-2.1.2.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="Scripts/jquery.ui.core.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="Scripts/jquery.ui.widget.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="Scripts/jquery.ui.mouse.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="Scripts/jquery.ui.button.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="Scripts/jquery.ui.dialog.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="Scripts/jquery.ui.draggable.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="Scripts/jquery.ui.position.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;link href="Styles/demos.css" rel="stylesheet" type="text/css" /&gt;
&lt;script&gt;
    $(function () {

        $("#dialog:ui-dialog").dialog("destroy");

        $("#btnprnt").dialog({
            resizable: false,
            height: 140,
            modal: true,
            buttons: {
                "Yes": function () {
                    $(this).dialog("close");

                },
                No: function () {
                    $(this).dialog("close");
                }
            }
        });
    });

&lt;/script&gt;
</code></pre>

<p>and this is my button click event :</p>

<pre><code>protected void btnprnt_Click(object sender, EventArgs e)
{
    //Response.Redirect("Print.aspx");

    ScriptManager.RegisterClientScriptBlock(this, this.GetType  (), "NewWindow", "function();", true);
}
</code></pre>

<p>My button is in ajax panel.
I am calling jquery function in code behind.
But this button click dosen't fire jquery.</p>
