title: How to use JQuery dialog as Confirm dialog in ASP.NET?
body: <p>I am new to jquery and i am trying to open a dialog onclientclick of a button. The dialog is having some text and accept and decline button. On accept, it must do a server postback and and on decline should do nothing. Any pointers on this will be highly appreciated </p>
  
  <p>I am trying to do the below.. but does not work</p>
  
  <pre><code>  $(document).ready(function () {
  
         $(function () {
             $("#SucessDialog").dialog({
                 autoOpen: false,
                 //width: 450,
                 modal: true,
                 resizable: false
             });
         });
  
  function show_confirm()
  {
         $("#SucessDialog").dialog('open');
  }
  
  
  &lt;asp:Button ID="btnfinance" CssClass="btn green" runat="server" OnClientClick="show_confirm()" OnClick="btnfinance_click"  Text="Finance"  style="width:25%"&gt;&lt;/asp:Button&gt;
  </code></pre>