Custom control - how to access text inside the tag

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
 
R

Riki

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top