In an ASP control how can I get the text in a <Contentemplate> tag in the control code?
Posted
by uince81
on Stack Overflow
See other posts from Stack Overflow
or by uince81
Published on 2009-07-02T08:38:18Z
Indexed on
2010/03/23
11:03 UTC
Read the original article
Hit count: 240
Hi, In my page ASP.net page I'm using a custom control like this:
<MyNamespace:MyControl runat="server" ID="myControl">
<contenttemplate>
This is the text I want to use
</contenttemplate>
</MyNamespace:MyControl>
In the c# code of the control how can I obtain a string containing the text between the <contentemplate>
tag (eg. "This is the text I want to use") ?
Can you give me the code?
Thank you!
© Stack Overflow or respective owner