Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Controls
Message
De
03/03/2003 07:50:02
 
 
À
28/02/2003 15:37:31
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Titre:
Divers
Thread ID:
00759524
Message ID:
00760303
Vues:
17
Hi Bonnie,

I'm sorry then, I don't know why the control would not be visible, but then I have not added cotnrols programmatically so I'm not familiar with the issues ( just getting started with the .NET stuff :-) ).

On the other issue addressed in this thread, could you place any relative/absolute path related data in your web.config file and limit access to that file with permissions to protect the data, read this data and use it to find/load your controls?

Bill

>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
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform