Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > User Control not called

Reply
Thread Tools

User Control not called

 
 
Vi
Guest
Posts: n/a
 
      08-24-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Control to Control Other User Control Jonathan Wood ASP .Net 4 02-02-2010 03:41 PM
Event Handler is not called for Control inside User Control ccbalapatel@gmail.com ASP .Net 2 04-04-2007 11:43 PM
persisting changes to a control outside a user control from the user control? Mad Scientist Jr ASP .Net 0 03-22-2006 08:02 AM
three times copy ctor called, one ctor called, why? Apricot C++ 4 04-16-2004 07:55 AM
UnLoad not been called in Web User Control Dinesh Reddy N Y ASP .Net Web Controls 0 04-13-2004 04:17 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57