Injecting a User Control / Control into a content dynamic content

K

Kurt

I was experimenting with an idea of using a keyword concept to allow custom
user controls to be injected or dynamically added to a point on a web page,
based on some content stored in an external data store. Example, say I have
the following stored in a database text field:

“<table><tr><td>Some Content</td><td>{AdRotator}</td></tr></table>â€

Additionally, say I have a user control that is an ad rotator. What I would
like to do now is replace the “{AdRotator}†with my preconfigured AdRotator
control. Preferably, I would like to someway get a reference to the TD
object contacting the “keyword†cell I want to replace, then just do the
Controls.Add() trick, unfortunately, I am not quite seeing how to turn my
original string into a ASP.NET object prior to adding it to a page..?

Any thoughts on the concept would be most welcome.

thanks
 

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

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top