title: Accessing inner value of ASP.NET Web User Control
body: <p>Surprised that i havent been able to find this myself, but anyway. Let's say i use my web user control like this:</p>
  
  <pre><code>&lt;myprefix:mytag userid="4" runat="server"&gt;Some fancy text&lt;/myprefix:mytag&gt;
  </code></pre>
  
  <p>How would i be able to access the text inside the tags from its codebehind ("Some fancy text")? Was expecting it to be exposed through this.Text, this.Value or something similar.</p>
  
  <p>EDIT:
  I even get the following warning on the page where i try to user it:
  <strong>Content is not allowed between the opening and closing tags for element 'mytag'.</strong></p>
  
  <p>EDIT2:</p>
  
  <pre><code>public partial class mytag: UserControl
  {
      public int ItemID { get; set; }
      protected void Page_Load(object sender, EventArgs e)
      {           
      }
  }
  </code></pre>