I want to be able to do something like this:
<uc:MyUC>
<CustomContent>
<span id="name">johnny the assasin</span>
</CustomContent>
</uc:MyUC>
and having that control able to render
hello <b><span id="name">johnny the assasin</span></b>
but I can’t seem to find a way to expose a property that lets me write any markup I want just like as if I had a content place holder on my user control
Is something like this even possible?
I think you need to define a property of type
ITemplatein your control. E.g.and then you could use it in markup like:
More could be found here: How to: Create Templated ASP.NET User Controls