How to render HTML in between customer user control tags?
Ok,... I've built a custom control. It works fine but I want to extend it to be able to render HTML tags in between the tags. in other words, my control works fine like this:
<myCustomContol:mycontrol runat="server" />
but it doesn't work fine when I do this:
<myCustomContol:mycontrol runat="server">
<div> Some Html here</div>
</myCustomContol:mycontrol>
it gives me this error:
Parser Error
Type 'ASP.content_ascx' does not have a property named 'div'.
I need to make the control able to render HTML content in between the tags. The reason is cause this one control renders ALL the content on the page. However, I want to "sometimes" add extra stuff, and I dont want to have to go into the control to modify it. I want the control to be able to read the HTML in between its tags and render it where I want it to. How can I do this?
Thanks!