User Control not called

V

Vi

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
 

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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top