title: How do i show dialog from code behind file in asp.net?
body: <p>I am working on a web application in which multiple dialogs opens on one another.How to attach and show dialogs from cs file in asp.net web application so that the code becomes more manageable.</p>
  
  <pre><code>$("#dialog1").dialog({ 
      autoOpen: false, 
      modal: true, 
      draggable: true, 
      height: 340, 
      width: 400, 
      position: "center", 
      resizable: false, 
      buttons: { 
          "Yes": function () { $("#dialog1").dialog("close") }, 
          "No": function () { } 
      } 
  }); 
  $("#btnDialog").click(function () { $("#dialog1").dialog("open"); }); 
  </code></pre>