title: Custom Control in ASP.NET C#
body: <p>I created a simple custom control that only inherits from the <code>Literal</code> control, and doesn't have any extensions yet, code is empty.</p>
  
  <p>Namespace: CustomControls</p>
  
  <p>Class name: Literal : System.Web.UI.WebControls.Literal</p>
  
  <p>Next thing I do is registering this control in the <code>aspx</code> page as following:</p>
  
  <pre><code>&lt;%@ Register TagPrefix="web" Namespace="CustomControls" %&gt;
  </code></pre>
  
  <p>(I read in few tutorials that this is one of the ways to register it, besides web.config etc.)</p>
  
  <p>After all, no intellisence for me, and worse- I get a parse error 'unknown server tag: web' when I try to run the page with the  control in it.</p>
  
  <p>I used 'create new project' and not new website, in case this info is needed.</p>
  
  <p>What could be my problem?</p>
  
  <p>Thanks in advance.</p>