Loading Custom Server Control from string ..

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anders Borum

    #1

    Loading Custom Server Control from string ..

    Hello!

    I'm looking for the best way to load a custom server control defined by a
    string (not a user-control - defined by the .ascx extension). The source for
    the control is defined in e.g. a database and defines the namespace and
    class for the control to be loaded.

    Are we simply talking about loading assemblies here?

    C#:
    // Get source for control
    string controlSrc = "SphereWorks.Co ntrols.RSSFeedD isplay";

    // Here's the interesting part (?)
    Control loadedControl = ?

    Controls.Add(lo adedControl);

    Thanks in advance. It's a quite interesting discussion, so I hope someone'll
    join in =o)

    --
    venlig hilsen / with regards
    anders borum
    --


Working...