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?

Who is Participating?
prajeebkumarConnect With a Mentor Commented:
can you use asp:placeholder for this?


this will work for asp.net 1.1  also.
born4codeAuthor Commented:
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.