title: "The name xxx does not exist in the current context" after adding LoginView
body: <p>I have a simple, single-page in ASP.NET (C#). I wanted to add login control, so I just added LoginView as follows:</p>
  
  <pre><code>&lt;form id="form1" runat="server"&gt;
  
  &lt;asp:LoginView ID="LoginView1" runat="server"&gt;
  
      &lt;AnonymousTemplate&gt;
          &lt;asp:Login ID="Login1" runat="server"&gt;
          &lt;/asp:Login&gt;
      &lt;/AnonymousTemplate&gt;
  
      &lt;LoggedInTemplate&gt;
          ... here I put all the page elements (buttons, grid views, etc.)
      &lt;/LoggedInTemplate&gt;
  
  &lt;/asp:LoginView&gt;   
  
  &lt;/form&gt;
  </code></pre>
  
  <p>When I run my project I get compilation errors in my code-behing file:</p>
  
  <pre><code>The name xxxx does not exist in the current context
  </code></pre>
  
  <p>What am I doing wrong? I'm new in ASP.NET, so probably it is some stupid mistake I make.</p>