Injecting a User Control / Control into a content dynamic content

Discussion in 'ASP .Net Web Controls' started by Kurt, Jun 13, 2007.

  1. Kurt

    Kurt Guest

    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
     
    Kurt, Jun 13, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. amine  zejli
    Replies:
    1
    Views:
    493
    Tom Yates
    Oct 20, 2003
  2. amine  zejli
    Replies:
    0
    Views:
    462
    amine zejli
    Oct 19, 2003
  3. Amine Zejli
    Replies:
    1
    Views:
    512
    William Ryan
    Oct 19, 2003
  4. Brian W
    Replies:
    10
    Views:
    1,005
    Brian W
    Jul 2, 2003
  5. Jamie R. Parent

    Injecting a C side object into the local dict

    Jamie R. Parent, Feb 11, 2005, in forum: Python
    Replies:
    1
    Views:
    322
    python
    Feb 11, 2005
  6. Skip Montanaro

    injecting "set" into 2.3's builtins?

    Skip Montanaro, Mar 10, 2005, in forum: Python
    Replies:
    3
    Views:
    341
    Skip Montanaro
    Mar 12, 2005
  7. Stephen Thorne

    Re: injecting "set" into 2.3's builtins?

    Stephen Thorne, Mar 11, 2005, in forum: Python
    Replies:
    2
    Views:
    351
    Skip Montanaro
    Mar 11, 2005
  8. johanatan
    Replies:
    70
    Views:
    858
Loading...