Link to home
Start Free TrialLog in
Avatar of born4code
born4code

asked on

Loading a usercontrol from a class file?

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?

Ideas?
ASKER CERTIFIED SOLUTION
Avatar of prajeebkumar
prajeebkumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of born4code
born4code

ASKER

I am using a placeholder.
The more I think about this, I think that I asked my question wrong.

Well, this one was asked wrong... and I am going to have to re-do it.
I am just going to give you the points, I will do this one again.