title: Why I can't access to my own User Control?
body: <p>Following this <a href="http://msdn.microsoft.com/it-it/library/cc185061.aspx" rel="nofollow">guideline</a>, I've created my own User Control and registered into the webconfig:</p>
  
  <pre><code>public partial class usercontrols_LinkBoxAttivita : System.Web.UI.UserControl
  {
      protected void Page_Load(object sender, EventArgs e)
      {
  
      }
  
      public int MyProp { get; set; }
  }
  </code></pre>
  
  <p>On Home.ascx I've included this:</p>
  
  <pre><code>&lt;myOwnControls:LinkBoxAttivita ID="LinkBoxAttivita1" runat="server" /&gt;
  </code></pre>
  
  <p>It works, and it is rendered. Now, why on the codebehind of Home.ascx.cs I can't access to it? </p>
  
  <p>LinkBoxAttivita1 seems unexistent. I want to set from here the MyProp value to it.</p>
  
  <p>This is how I registered it:</p>
  
  <pre><code>&lt;system.web&gt;
      &lt;pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"&gt;
          &lt;controls&gt;
              &lt;add tagPrefix="myOwnControls" tagName="LinkBoxAttivita" src="~/usercontrols/LinkBoxAttivita.ascx" /&gt;
          &lt;/controls&gt;
      &lt;/pages&gt; 
  &lt;/system.web&gt;
  </code></pre>