title: VWD2010 *.aspx.design.cs file not auto generating correctly
body: <p>Yesterday I began to write C# in order to develop usercontrols for Umbraco and I ran across a well-known problem where I get the error "The * name does not exist in the current context." I found inumerous answers to that particular problem, as:</p>
  
  <p><a href="https://stackoverflow.com/questions/6747551/fixing-name-does-not-exist-in-the-current-context-errors-in-web-developer-expr">Fixing &quot;name does not exist in the current context&quot; errors in Web Developer Express</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6008588/label-doesnt-exist-in-the-current-context">Label doesnt exist in the current context</a></p>
  
  <p><a href="http://forums.asp.net/t/1006588.aspx/1?The+name+xxx+Does+Not+Exist+in+the+Current+Context" rel="nofollow noreferrer">http://forums.asp.net/t/1006588.aspx/1?The+name+xxx+Does+Not+Exist+in+the+Current+Context</a></p>
  
  <p>...and so on and so forth. </p>
  
  <p>None of these questions, however, did help me solve my problem and I'm still banging my head against a wall.</p>
  
  <p>I then discovered that my  tags and their controls get discovered by my *.apsx.cs file, <strong>as long as I don't put them within any non-asp:-tag!</strong></p>
  
  <p>I'm trying to make a custom login control with a custom template, for that I need the -tag. Furthermore I put this within a  inside an LoginView control.</p>
  
  <pre><code>&lt;asp:LoginView ID="MemberValidation" runat="server"&gt; 
     &lt;AnonymousTemplate&gt;
       &lt;asp:Login ID="MemberLogin" runat="server" OnLoggedIn="MemberLogin_OnLoggedIn"&gt;
          &lt;LayoutTemplate&gt;
             &lt;asp:Literal ID="InformationMessage" runat="server"&gt;&lt;/asp:Literal&gt;
          &lt;/LayoutTemplate&gt;
     &lt;/AnonymousTemplate&gt;
     &lt;LoggedInTemplate&gt;...&lt;/LoggedInTemplate&gt;
  &lt;/asp:LoginView&gt;
  </code></pre>
  
  <p>My LiteralControl (and all the other LiteralControls I have - this is just a tiny example) is not registrered within the *.aspx.design.cs file automatically, hence, it is not accessible in my *.aspx.cs file, however if I remove the  tag and the  tag, my LiteralControl pops up. </p>
  
  <p>However, I need the two tags to make the code function as I wish, so my question remains unsolved: What can I do? Is it a bug?</p>
  
  <p>Thanks in advance,
  Brinck10</p>