title: ASP.NET Label Inside UpdatePanel Not Updating
body: <p>I am new to ASP.NET and I'm trying to get a Label to update with some information that is grabbed when I hit a button. The click function is called and returns just fine (I've debugged and stepped through the whole thing). The only thing that doesn't work is where I set the text of the Labels I'm trying to update. </p>
  
  <p>This is the function that gets called on the button click:</p>
  
  <pre><code>Protected Sub submitbutton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles submitbutton.Click
          Dim res As String() = query(email1.Text)
          If Not res Is Nothing Then
              url1.Text = res(0)
              date1.Text = res(1)
          End If
  
      End Sub
  </code></pre>
  
  <p>I know it goes into the if and tries to set the text but nothing happens on the client side.</p>
  
  <p>This is the UpdatePanel I have:</p>
  
  <pre><code>&lt;asp:UpdatePanel ID="UpdatePanelSettings" runat="server" UpdateMode="Always"  &gt;
          &lt;Triggers&gt;
              &lt;asp:AsyncPostBackTrigger ControlID="submitbutton" EventName="click" /&gt;
          &lt;/Triggers&gt;
          &lt;ContentTemplate&gt;
              &lt;table&gt;
                  &lt;tr&gt;
                      &lt;td&gt;Emails&lt;/td&gt;&lt;td&gt;Url Parsed&lt;/td&gt;&lt;td&gt;Date Created&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;asp:TextBox runat="server" ID="email1" Width="300" /&gt;
                      &lt;/td&gt;
                      &lt;td&gt;
                          &lt;asp:Label runat="server" ID="url1" Text="-" /&gt;
                      &lt;/td&gt;
                      &lt;td&gt;
                          &lt;asp:Label runat="server" ID="date1" Text="-" /&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td colspan="3"&gt;&lt;asp:Button ID="submitbutton" runat="server" Text="Submit" /&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>As I said, I know the trigger works because I've stepped through the code when it is called. I know that you also need a ScriptManager, which I have right inside the form element that comes in the Site.Master file (I really just stuck stuff in the default template. It's just a proof of concept project).</p>
  
  <pre><code>&lt;form id="form1" runat="server"&gt;
      &lt;asp:ScriptManager ID="ScriptManager1" runat="server" /&gt;
  </code></pre>
  
  <p>From all the articles I've found on the web, this should be all I need. One article mentioned having to do things with the Web.Config, but it said that for VS 2005 and I'm using 2010. It mentioned you didn't have to change anything in 2008, so I figured the same was true for 2010. What am I missing that I need to get the labels to update?</p>