title: Label does not display text or update text when a specific method is called
body: <p>I am working with a Visual WebPart (c#) which consists of an UpdatePanel which wraps the contents of the web form.  On this form, within the UpdatePanel, I have an asp.net label which has its text property set based on the outcome of the submit.  It's set to visible after execution, and its forecolor is changed as well depending on error or success.  This works perfectly (text updates/becomes visible) until I decide to call a specific method when the submit button is pressed.  When this method is called, the text property is not updating and the label is not displaying.</p>
  
  <p>I have debugged this process several times and each time I step through the process and see the correct message, see it get applied to the label's text property, and complete but the page is not updated.  I can reproduce the working functionality by commenting out the method call.  No errors are being thrown.  The program appears to execute properly while debugging.</p>
  
  <p><strong>submit button code excerpt:</strong></p>
  
  <pre><code>try
                  {
                      CreateElementOnDestinationWebs(this.ddlSupportedElements.SelectedValue.ToString(), elementName, ref messages);
                      msg = String.Format("&lt;br /&gt;We have successfully created your {0}.  Please review the following outcomes: &lt;br /&gt;&lt;ul&gt;", this.ddlSupportedElements.SelectedItem.Text);
                      foreach (string m in messages)
                      {
                          msg += String.Format("&lt;li&gt;{0}&lt;/li&gt;", m);
                      }
                      msg += "&lt;/ul&gt;";
  
                      labelMessages.Text = msg;
                      labelMessages.Visible = true;
                      labelMessages.ForeColor = System.Drawing.Color.ForestGreen;                        
                  }
                  catch (Exception ex)
                  {
                      msg = String.Format("&lt;br /&gt;An unexpected error occurred while creating the item: {0}", ex.ToString());
                      labelMessages.Text = msg;
                      labelMessages.Visible = true;
                      labelMessages.ForeColor = System.Drawing.Color.Maroon;
                  }
  </code></pre>
  
  <p><strong>CreateElementOnDestinationWebs source:</strong></p>
  
  <pre><code>try
                      {
                          Guid listId = web.Lists.Add(name, "Student work can be submitted here.", SPListTemplateType.DocumentLibrary);
                          web.Update();
  
                          SPList newList = web.Lists[listId];
                          newList.OnQuickLaunch = this.checkDropBoxShowOnQuickLaunch.Checked;
                          newList.EnableModeration = true;
                          newList.Update();
  
                          GrantStudentGroupsContributeRights(web, ref newList, ref msgs);
  
                          try
                          {
                              DetectAddColumnsToDropbox(web, ref newList, ref msgs);
                          }
                          catch (Exception)
                          {
                              msgs.Add("There was an unexpected error while attempting to add the site columns to the library.");
                          }                        
  
                          msgs.Add(String.Format("Your item: {0}, has been successfully created on site: &lt;a href='{1}' target='_blank'&gt;{2}&lt;/a&gt;", name, web.Url, web.Title));
                      }
                      catch (Exception)
                      {
                          msgs.Add(String.Format("An error occurred while creating the document library for student work on site: &lt;a href='{0}' target='_blank'&gt;{1}&lt;/a&gt;", web.Url, web.Title));
                      }
  </code></pre>
  
  <p>If the try block containing "DetectAddColumnsToDropbox" is commented out the label (labelMessages) appears correctly.  If not, the label does not appear/update.  The method in question does not update any control or item on the form.</p>