title: Find Control Deep Inside LoginView
body: <p>I have a login view control that I can find with findcontrol. Inside it is LoggedInTemplate->ul->li->ul->li->a. How can I find a? Here is sample code:<br/></p>
  
  <blockquote>
  <pre><code>   &lt;asp:LoginView runat="server" ViewStateMode="Disabled" ID="a"&gt;
            &lt;LoggedInTemplate&gt;
                   &lt;ul class="nav navbar-centered navbar-nav" id="second-menu" role="menu" &gt;
                       &lt;li class="dropdown"&gt;&lt;a runat="server" href="" class="dropdown-toggle" &gt;AB&lt;/span&gt;&lt;/a&gt;
                          &lt;ul class="dropdown-menu"&gt;
                              &lt;li&gt;&lt;a runat="server" id="link"&gt;Link&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  </blockquote>
  
  <p>This works:</p>
  
  <pre><code>LoginView a = (LoginView)this.Master.FindControl("a");
  </code></pre>
  
  <p>But this doesn't:</p>
  
  <pre><code>HyperLink dashboardLink = (HyperLink)a.FindControl("link");
  </code></pre>