title: ASP.NET: Register multiple controls at once via namespace?
body: <p>Is it possible to register a complete namespace of usercontrols in an aspx-File, instead of each control seperately?</p>
  
  <p>I have created a bunch of usercontrols and collected them into an own namespace "MyWebControls", like this:</p>
  
  <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeFile="LevelFilter.ascx.cs" Inherits="MyWebControls.LevelFilter" %&gt;
  </code></pre>
  
  <p>Codebehind:</p>
  
  <pre><code>namespace MyWebControls
  {
      public partial class LevelFilter : System.Web.UI.UserControl
      {
         ...
      }
  }
  </code></pre>
  
  <p>What I tried now to include them in my pages (and what did not work):</p>
  
  <pre><code>&lt;%@ Register Namespace="MyWebControls" TagPrefix="ucs" %&gt;
  ...
  &lt;ucs:LevelFilter /&gt;
  </code></pre>
  
  <p>Is there any way to do this? Apparently it works with external assemblies like AjaxControlToolkit, so I guess this should be possible.</p>
  
  <p>I am using ASP.NET 4.0.</p>