Accessing inner value of ASP.NET Web User Control

Posted by Fabian on Stack Overflow See other posts from Stack Overflow or by Fabian
Published on 2010-03-31T08:16:33Z Indexed on 2010/03/31 8:23 UTC
Read the original article Hit count: 223

Filed under:
|

Surprised that i havent been able to find this myself, but anyway. Let's say i use my web user control like this:

<myprefix:mytag userid="4" runat="server">Some fancy text</myprefix:mytag>

How would i be able to access the text inside the tags from its codebehind? Was expecting it to be exposed through this.Text, this.Value or something similar.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about web-user-controls