title: How to change login status in LoginView control
body: <p>How to change status from first Template to second template when I'm login into the system?</p>
  
  <pre><code>&lt;asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false"&gt;
      &lt;AnonymousTemplate&gt;
          [ &lt;a href="~/Login.aspx" ID="HeadLoginStatus" runat="server"&gt;Log In&lt;/a&gt; ]
      &lt;/AnonymousTemplate&gt;
      &lt;LoggedInTemplate&gt;
          Welcome!
          [ &lt;asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="/Logout.aspx"/&gt; ]
      &lt;/LoggedInTemplate&gt;
  &lt;/asp:LoginView&gt;
  </code></pre>
  
  <p>How to detect login status?</p>