A
anthonyroche
I have a web app (ASP.Net) using Templates with predominatly the body
content stored in the db and displayed to screen using a PageID
querystring. What I want to know is, if a content manager adds the
tags
<wuc:news id="News" runat="server"></wuc:news> into the body section
via a CMS together with other page data (HTML content), how can I
detect this tag (user control) and actually load it in the place
he/she wants.
Example HTML content loaded from db
<table><tr><td>some text here</td></tr>
<tr><td> more text maybe with images</td></tr>
<!-- NOW I WANT THE NEWS USER CONTROL -->
<tr><td><wuc:news id="News" runat="server"></wuc:news></td></tr>
</table>
I use a placeholder on the template page to pick up the string(above)
that is stored in the DB which works fine. When I view source I can
see the <wuc.. tag but ofcourse the news control is not rendered or
loaded.
Any ideas?
content stored in the db and displayed to screen using a PageID
querystring. What I want to know is, if a content manager adds the
tags
<wuc:news id="News" runat="server"></wuc:news> into the body section
via a CMS together with other page data (HTML content), how can I
detect this tag (user control) and actually load it in the place
he/she wants.
Example HTML content loaded from db
<table><tr><td>some text here</td></tr>
<tr><td> more text maybe with images</td></tr>
<!-- NOW I WANT THE NEWS USER CONTROL -->
<tr><td><wuc:news id="News" runat="server"></wuc:news></td></tr>
</table>
I use a placeholder on the template page to pick up the string(above)
that is stored in the DB which works fine. When I view source I can
see the <wuc.. tag but ofcourse the news control is not rendered or
loaded.
Any ideas?