title: Modal popup not generating postback to page
body: <pre><code>&lt;ajaxToolkit:ModalPopupExtender  runat="server" 
           id="ModalPopupExtender1"
           cancelcontrolid="btnCancel" okcontrolid="btnOkay" 
           targetcontrolid="Button1" popupcontrolid="Panel1" 
           drag="true" 
           backgroundcssclass="ModalPopupBG"
          /&gt;
  
  &lt;asp:Button ID="Button1" runat="server" Text="Test Modal Popup" 
      onclick="Button1_Click" /&gt;
      &lt;br /&gt;
  
  &lt;asp:UpdatePanel ID="up" runat="server"&gt;
      &lt;ContentTemplate&gt;
          &lt;asp:Button ID="Button2" runat="server" Text="Post Back" 
          onclick="Button2_Click" /&gt;
          &lt;asp:Label ID="Label1" runat="server" AutoPostBack="true" Text="Nothing has happened yet..."&gt;&lt;/asp:Label&gt;
  
          &lt;asp:Panel ID="Panel1" runat="server" AutoPostBack="true"&gt;
              &lt;div class="HellowWorldPopup"&gt;
                  &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;
                  &lt;asp:Button ID="btnCancel" runat="server" Text="Canel" 
                      onclick="btnCancel_Click" /&gt;
                  &lt;asp:Button ID="btnOkay" runat="server" Text="Okay" onclick="btnOkay_Click" /&gt;
              &lt;/div&gt;
          &lt;/asp:Panel&gt;
  
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>So I am trying to get the Label to have the contents of what the user typed in the textbox inside the modal popup. Right now the <code>btnOkay</code> is not causing this to work.</p>
  
  <p><code>.cs</code> file:</p>
  
  <pre><code>protected void btnCancel_Click(object sender, EventArgs e)
  {
      TextBox1.Text = "";
  }
  protected void btnOkay_Click(object sender, EventArgs e)
  {
      Label1.Text = TextBox1.Text;
      TextBox1.AutoPostBack = true;
  }
  protected void Button1_Click(object sender, EventArgs e)
  {
      Label1.Text = "";
      TextBox1.Text = "";
  }
  protected void Button2_Click(object sender, EventArgs e)
  {
      Label1.Text = "You clicked the button";
  }
  </code></pre>
  
  <p>I do not want the page to post back at all, but just to update the hidden labels on the page once information is entered. How do I do this?</p>