title: get label text from page load using javascript
body: <p>I'm using this function </p>
  
  <pre><code>&lt;script type="text/javascript" language="javascript"&gt;
      function readwebconfig() {
          var sessiontime = "&lt;%= Session.Timeout %&gt;";
          alert(sessiontime);
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Now, i want to assign this <code>sessiontime</code> value to label text, how can i do that. </p>
  
  <pre><code>&lt;asp:Label ID="lblmsg" runat="server"&gt;&lt;/asp:Label&gt;
  </code></pre>
  
  <p>Thanks in advance</p>