A
Anders Borum
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.Controls.RSSFeedDisplay";
// Here's the interesting part (?)
Control loadedControl = ?
Controls.Add(loadedControl);
Thanks in advance. It's a quite interesting discussion, so I hope someone'll
join in =o)
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.Controls.RSSFeedDisplay";
// Here's the interesting part (?)
Control loadedControl = ?
Controls.Add(loadedControl);
Thanks in advance. It's a quite interesting discussion, so I hope someone'll
join in =o)