Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Controls
Message
From
28/02/2003 15:37:31
 
 
To
28/02/2003 14:26:13
General information
Forum:
ASP.NET
Category:
Web forms
Title:
Miscellaneous
Thread ID:
00759524
Message ID:
00759649
Views:
18
Bill,

Nope, the TestControl.Visible property *is* true.

~~Bonnie


>Just a guess, but maybe some sort of "Visible" property needs to be set to true in your TestControl after adding it programmatically?
>
>Bill
>
>>Hey gang,
>>
>>I've added UserControls to WinForms with no problem, but now I'm stumped attempting to add a Web UserControl to a WebForm. Anyone have any idea what I'm doing wrong?
>>
>>I dropped a Panel (I call it WorkBox) onto my design surface. I'm using HTML tables on the form. I'm attempting to programmatically add a UserControl (called TestControl) into the WorkBox control. In the code behind, I have this:
>>
>>private TestControl oTest;
>>
>>this.oTest = new TestControl();
>>this.WorkBox.Control.Add(this.oTest);
>>
>>
>>It doesn't show up on the page. If I just add a plain old TextBox instead of a UserControl, it works fine.
>>
>>Any ideas what I might be missing?
>>
>>TIA,
>>~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform