title: Access Label.text value in a layout template
body: <p>How to access and set text of an <code>asp:label</code> inside a layout template?</p>
  
  <pre><code>&lt;ul class="login_panel"&gt;
     &lt;asp:Login ID="Login1" runat="server" RenderOuterTable="false" RememberMeSet="true"&gt;
        &lt;LayoutTemplate&gt;
           &lt;asp:Panel runat="server" ID="panel1" DefaultButton="LoginButton"&gt;
              &lt;li&gt;
                &lt;asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName"&gt;&lt;/asp:Label&gt;
                &lt;asp:TextBox ID="UserName" CssClass=" txt_login" runat="server"&gt;&lt;/asp:TextBox&gt;                                     
              &lt;/li&gt;
           &lt;/asp:Panel&gt;
        &lt;/LayoutTemplate&gt;
     &lt;/asp:Login&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I need to set the text for label in .cs file.</p>