title: How to make ModalPopup drag/drop
body: <p>I use a ModalPopupExtender from the Ajax ControlToolkit in my Webapplication.I set it's Drag property is true,but when I drag the popup panel and drop it at the new position,it comes back the original position at once.I want to get the effect like the Sample, can drag/drop at different position. How in the example on the page ..</p>
  
  <p><a href="http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx" rel="nofollow">http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx</a></p>
  
  <p>Here My Code:</p>
  
  <pre><code>&lt;form id="form1" runat="server"&gt;
  
      &lt;asp:scriptmanager id="ScriptManager1" runat="server"&gt;
         &lt;/asp:scriptmanager&gt; 
  
         &lt;asp:button id="btnAddNew" runat="server" text="New Expanse" /&gt;
  
         &lt;asp:modalpopupextender id="ModalPopupExtender1" 
                  runat="server" cancelcontrolid="btnCancel" 
                  okcontrolid="btnOkay" targetcontrolid="btnAddNew" 
                  popupcontrolid="Panel1" popupdraghandlecontrolid="PopupHeader" 
                  drag="true" backgroundcssclass="ModalPopupBG"&gt;
        &lt;/asp:modalpopupextender&gt;
  
  &lt;div class="popupConfirmation" id="Panel1" style="display: none"&gt;
  
          &lt;iframe id="frameeditexpanse" src="Benutzer.aspx" frameborder="1" height="500px" width="520px"&gt;
          &lt;/iframe&gt;
  
          &lt;div class="popup_Buttons" style="display: none"&gt;
              &lt;input id="btnOkay" type="button" value="Speichern" /&gt;
              &lt;input id="btnCancel" type="button" value="Abbrechen" /&gt;
          &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>PS: And I want input in the TextBoxes in the Background if the Dialog is open.</p>
  
  <p>update:</p>
  
  <p>...</p>
  
  <pre><code>&lt;asp:modalpopupextender id="ModalPopupExtender1" 
                  runat="server" cancelcontrolid="btnCancel" 
                  okcontrolid="btnOkay" targetcontrolid="btnAddNew" 
                  popupcontrolid="Panel1" popupdraghandlecontrolid="PopupHeader" 
                  drag="true" backgroundcssclass="ModalPopupBG"&gt;
        &lt;/asp:modalpopupextender&gt;
  
  
     &lt;div id="PopupHeader" style="display: none; background-color:Blue"&gt;
          Benutzerinformationen
     &lt;/div&gt;
  
     &lt;div class="popupConfirmation" id="Panel1" style="display: none"&gt;
  
      &lt;iframe id="frameeditexpanse" src="ZweiteSeite.aspx" frameborder="1"&gt;
      &lt;/iframe&gt;
  
      &lt;div class="popup_Buttons" style="display: none"&gt;
          &lt;input id="btnOkay" type="button" value="Speichern" /&gt;
          &lt;input id="btnCancel" type="button" value="Abbrechen" /&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>...</p>