Loading a usercontrol from a class file?
Posted on 2006-04-28
I have a blank ascx user control in my web project that uses the "loadcontrol" method in the code-behind file.
Code-Behind.vb >>>> LoadControl >>>> UserControl.ascx
Is there another way to use the loadcontrol method without using an ascx code-behind?
For example, can I just use some *class* file elsewhere and direct it to any usercontrol,
or is it required to be in the *code behind* file of the usercontrol?
Class.vb >>>> LoadControl >>>> UserControl.ascx
Doesn't it boil down to the question, can any class inherit a page, etc?