title: All controls are null within usercontrol
body: <p>I have a UserControl which uses a UserControl, among other controls. </p>
  
  <p>In the <code>ascx</code> file I have the following code:</p>
  
  <pre><code>&lt;%@ Register TagPrefix="tag" Namespace="some.name.space" Assembly="some.assembly" %&gt;
  &lt;tag:control ID="test" runat="server" /&gt;
  </code></pre>
  
  <p>In my <code>Page_Load</code> method, I try to set a property on test like so: </p>
  
  <pre><code>test.Text = "Hello World!";
  </code></pre>
  
  <p>This actually sets the Text property of a literal control in my user control <code>test</code>. </p>
  
  <p>This throws an exception: </p>
  
  <blockquote>
    <p>Object reference not set to an instance of an object</p>
  </blockquote>
  
  <p>When it tries to set the </p>
  
  <pre><code>lblTest.Text = value; 
  </code></pre>
  
  <p>The object that is null is <code>lblTest</code>.</p>
  
  <p>Am I not adding the user control correctly? Should I - or do I have to - specify the <code>Src</code> property when registering a Tag? If so, I'd have to register every usercontrol I use? </p>
  
  <p>This also results in no controls loading in usercontrol and all controls are null within usercontrol.</p>