Accessing labels within a LoginView
<p>I'm using the asp.net LoginView to show different data to authenticated or anonymous users.</p>

<pre><code>&lt;asp:LoginView ID="LoginView1" Runat="server"&gt;
    &lt;LoggedInTemplate&gt;
        &lt;asp:Label ID="Foo" runat="server" /&gt;
    &lt;/LoggedInTemplate&gt;
    &lt;AnonymousTemplate&gt;
        &lt;asp:Label ID="Bar" runat="server" /&gt;
    &lt;/AnonymousTemplate&gt;
&lt;/asp:LoginView&gt;
</code></pre>

<p>When I moved <code>Foo</code> and <code>Bar</code> into <code>LoginView1</code>, I was unable to access them from the code behind in this fashion:</p>

<pre><code>Foo.Text = "I am Foo";
Bar.Text = "I am Bar";
</code></pre>

<p>I was able to access them in this fashion before moving them into the LoginView. What (clean) method can I use to access these labels?</p>
