title: ajax modalpopup extender showing data from server on show
body: <p>Perhaps my understanding of the Ajax Modal popup is not correct. What I would like to do is to retrieve some data from the server and show it on the modal pop up when the user clicks on a button on the page. The following code is in the aspx of the page.</p>
  
  <pre><code> &lt;asp:Panel ID="pnlDetail" CssClass="modal" runat="server"&gt;
  
               &lt;div class="header"&gt;
                 Data
              &lt;/div&gt;
              &lt;div class="body"&gt;
                   &lt;div class="header"&gt;
                          &lt;asp:Label ID="lblInput" runat="server"&gt;&lt;/asp:Label&gt;
                     &lt;/div&gt;  
              &lt;/div&gt; 
  
  
     &lt;/asp:Panel&gt;
  
     &lt;ajaxToolkit:ModalPopupExtender ID="mpeDetail" PopupDragHandleControlID="pnlDetail" PopupControlID="pnlDetail" TargetControlID="hdnDetail"
  
      BackgroundCssClass="modalBG" CancelControlID="ShowDetailClose" runat="server" /&gt;
  </code></pre>
  
  <p>In the button click event of a button on the page, I retrieve the data from the server and assign the value to the lblInput inside the pop up panel and call mpe.Show.. but it does not display the value. I'm assuming the data needs to be present on load of mpe but thats not what I have to do.</p>
  
  <p>If MPE cannot achieve this, what is the alternative?</p>