title: Update Text on Asp control using JavaScript?
body: <p>I am trying to update the text on an ASP control using JavaScript. The code below seems like it should set it, but the text on the screen never actually changes. Can someone show me what is wrong with the code below?</p>
  
  <p>Markup</p>
  
  <pre><code>&lt;asp:Label ID="lblBlah2" CssClass="Blah" Runat="server" Text="OriginalText"&gt;&lt;/asp:Label&gt;
  </code></pre>
  
  <p>JavaScript</p>
  
  <pre><code>            var t = document.getElementById('&lt;%=lblBlah2.ClientID %&gt;'); 
              t.attributes["Text"] = 'NewlyUpdateText'; 
              alert(t.attributes["Text"]);
  </code></pre>
  
  <p>When the JavaScript alert fires, I see "NewlyUpdateText", however, the text of the control on the screen still says "OriginalText". Why does the change in text get ignored? </p>