title: How can I import a .ascx file into a .aspx page using tag registering?
body: <p>I have this set up...</p>
  
  <pre><code>&lt;%@ Register TagPrefix="UserControl" 
               TagName="UserLogin" 
               Src="~/admin/Authentication/Login.ascx" %&gt;
  &lt;%@ Register TagPrefix="UserControl"
               TagName="UserRegister"
               Src="~/admin/Authentication/Register.ascx" %&gt;
  </code></pre>
  
  <p>Then later on in the same file I use the tags...</p>
  
  <pre><code>&lt;div id="LoginContainer"&gt;&lt;UserControl:UserLogin runat="server /&gt;&lt;/div&gt;
  &lt;div id="RegisterContainer"&gt;&lt;UserControl:UserRegister runat="server" /&gt;&lt;/div&gt;
  </code></pre>
  
  <p>And for some reason, the UserControl:UserRegister gets underlined in green, when I hover over it, it says "Element 'UserRegister' is not a known element. This can occur if there is a compilation error in the website or if the web.config file is missing."</p>
  
  <p>Is there something else I need to do to make these tags work other than just registering them at the top of the page?</p>