title: Another modal popup extender question
body: <p>I am trying to get a modal popup to work, it needs to be triggered in the Code behind.</p>
  
  <pre><code> &lt;asp:Button ID="btnModalPopUp" runat="server" Text="Button" Style="display: none" /&gt;
  &lt;asp:Panel ID="pnlModalPopup" runat="server" CssClass="modalPopup" Style="display: none"
      Width="233px"&gt;
      &lt;div id="Div1" runat="server" cssclass="title"&gt;
          Modal text here.
          &lt;asp:TextBox ID="txtEditComments" runat="server"&gt;&lt;/asp:TextBox&gt;
      &lt;/div&gt;
  &lt;/asp:Panel&gt;
  &lt;cc1:ModalPopupExtender ID="modalMessage" runat="server" TargetControlID="btnModalPopUp"
      PopupControlID="pnlModalPopup" BackgroundCssClass="modalBackground"         DropShadow="true"/&gt;
  </code></pre>
  
  <p>Code behind:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      modalMessage.Show();
  }
  </code></pre>
  
  <p>Even though it hits the "modalMessage.Show();" code it doesn't show the modal panel.</p>