title: How to Update asp:Label after AJAX Callback
body: <p>I'm using the ajaxtoolkit:Rating. It all works fine except I'm trying to write a value to an asp label on the changed event and can't get it to work. Here are the relevant lines of code:</p>
  
  <p>page.aspx</p>
  
  <pre><code>&lt;asp:LoginView ID="LoginView1" runat="server"&gt;
  &lt;LoggedInTemplate&gt;
      &lt;td&gt;
          &lt;ajaxtoolkit:Rating ID="YourRating" runat="server" BehaviorID="RatingBehavior1" CurrentRating="0"
              MaxRating="10" StarCssClass="ratingStar" WaitingStarCssClass="savedRatingStar"
              ReadOnly="false" FilledStarCssClass="filledRatingStar" EmptyStarCssClass="emptyRatingStar"
              OnChanged="YourRating_Changed" /&gt;
      &lt;/td&gt;
      &lt;td&gt;
          (&lt;asp:Label ID="YourRatingNumber" Text="" runat="server"&gt;&lt;/asp:Label&gt;)
      &lt;/td&gt;
  &lt;/LoggedInTemplate&gt;
  &lt;AnonymousTemplate&gt;
      &lt;td&gt;
       &lt;a href="../Default.aspx"&gt;Login&lt;/a&gt; or Register to Rate
      &lt;/td&gt;
   &lt;/AnonymousTemplate&gt;
  </code></pre>
  
  <p></p>
  
  <p>page.aspx.cs</p>
  
  <pre><code>        protected void YourRating_Changed(object sender, AjaxControlToolkit.RatingEventArgs e)
      {
          ((HtmlGenericControl)FindControl("MainContent_LoginView1_YourRatingNumber")).InnerHtml = e.Value;
  
      }
  </code></pre>
  
  <p>What I'm trying to do is update my asp:label control named "YourRatingNumber" text to e.value. I've tried many ways. I realize the asp:label is rendered as a span tag but I can't seem to access that value either. How can do this?</p>
  
  <p>Thanks ... Bob</p>