title: How to update a status label inside ajax request
body: <p>I have this code :</p>
  
  <pre><code>&lt;div style="padding: 0px 12px 12px 12px;"&gt;
      &lt;asp:UpdatePanel runat="server" ID="Panel"&gt;
          &lt;ContentTemplate&gt;
              &lt;asp:Button ID="btnGenerate" CssClass="button" Style="float: right" runat="server"
                  Text="Go" OnClick="btnGenerate_Click" /&gt;
          &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;asp:UpdateProgress runat="server" ID="PageUpdateProgress"&gt;
          &lt;ProgressTemplate&gt;
              &lt;img src="ajax-loader.gif" /&gt;
              &lt;asp:Label ID="lblStatus" runat="server" Text="Working..." CssClass="label" /&gt;
          &lt;/ProgressTemplate&gt;
      &lt;/asp:UpdateProgress&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When I click the button the animated gif shows... which is great, but the process takes over a minute and I would like to show the user (as long as the code is not complex) what is going on.</p>
  
  <p>So I put a label next to the image, and in the code behind when I try and do :</p>
  
  <pre><code>lblStatus.Text = "Doing xyz";
  </code></pre>
  
  <p>It gives some sort of namespace issue. Any ideas how I can acheive this?</p>
  
  <p>UPDATE :
  The error is "the type or namespace 'lblStatus' cannot be found".</p>