title: Execute a dynamic modal popup
body: <p>Hi i have a problem launching my dynamic modal popup.
  I need to launch it by clicking on a button this button must transfer a value to a web service that retrieve from the database some data.</p>
  
  <p>Here is the code of the button </p>
  
  <pre><code> &lt;asp:Button ID="btnShow" Text="Details"  runat="server" /&gt;
  </code></pre>
  
  <p>Here the code of the modal popup</p>
  
  <pre><code>&lt;asp:ModalPopupExtender ID="btnShow_ModalPopupExtender" runat="server" 
          TargetControlID="btnShow" OkControlID="btnDlgOK" PopupControlID="pnlPopup"
          DynamicControlID="lblInfo"
          DynamicServicePath="GetDetails.asmx"
          DynamicServiceMethod="GetData"
          BackgroundCssClass="modal"
          DropShadow="true"
          &gt;
      &lt;/asp:ModalPopupExtender&gt;
  </code></pre>
  
  <p>And here my basic javascript to open the popup</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function showpop() {
          $find("btnShow_ModalPopupExtender").show();
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Now I don't know how to call javascript code from the button and also how to call the web service that extract the data from the database.</p>
  
  <p>How can I do it?</p>