Problems Loading User Control

G

Guest

I have a user control that I'm using programmatically on 2 web forms. On one
web form it is working properly, on the second it is not displayed. I ran the
form step by step, and the debugger goes through the control's load code, but
does not go into the control code itself.

To load the control I use: Control ctl = LoadControl("MyControl.ascx");

I don't understand what is the problem, since I don't see any differences
between the way the control is loaded in the first and second web forms.

Any thoughts?
Thank you
 
K

Karl

If you are looking at your code and you don't see it, image how hard it is
for us with that 1 line of code you showed...

It would be helpful if you included additional code..

Thanks,
Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top