You cannot do this with a user control (ascx file). As there is no way to access the "inner HTML" code, that the control is wrapped around. In order to do this with a user control, you'll need to define a string property on your control, e.g. Contents which
you can then use in the markup:
johram
All-Star
28531 Points
3567 Posts
Re: <cc:MyControl> ... </cc:MyControl>
Jul 22, 2008 11:43 PM|LINK
You cannot do this with a user control (ascx file). As there is no way to access the "inner HTML" code, that the control is wrapped around. In order to do this with a user control, you'll need to define a string property on your control, e.g. Contents which you can then use in the markup:
<cc:MyControl id="MyControl1" runat="server" Contents="Hello World!"></cc:MyControl>