Custom control - how to access text inside the tag

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Hi all,

I'm making a custom control. I can set attributes to determine how the
control is rendered, but I don't know how to access the text inside the
tag. For example:

<tagprefix:TestControl runat="server">My text</tagprefix:TestControl>

How can I fetch the "My text" value in the custom control's code so I
can use it in the Render method?

Thanks,

Paul
 
Back
Top