title: AjaxControlToolkit ModalPopup in Asp.net MVC
body: <p>I have a <code>DashBoard</code> view.
  On clicking on <code>Assign</code> button a ModalPopup Opens like : <img src="https://i.stack.imgur.com/Ud5ln.jpg" alt="PopUpView"></p>
  
  <p>Code for opening PopUp</p>
  
  <pre><code>$create(AjaxControlToolkit.ModalPopupBehavior, 
      { 
          "BackgroundCssClass": "modalBackground", 
          "DropShadow": false, 
          "OkControlID": 
          "OkButton", 
          "OnOkScript": "onOk()", 
          "PopupControlID": "div_to_popup", 
          "id": "PopUpBox" 
      }, null, null, $get("day"+a));
  
  function onOk(){
    // what to write here to save data on server
  }
  </code></pre>