Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where's the Reference?
Message
De
28/06/2004 11:00:53
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Where's the Reference?
Divers
Thread ID:
00917978
Message ID:
00917978
Vues:
30
I have placed a user control “Hats.ascx”” on another user control “Clothing.ascx”.

Questions:

How can I reference the properties and methods of the controls in Hats from the code-behind of Clothing? Hats does not appear in intellisence.

Can the properties and methods of the controls in hats.ascx be set public so they can be changed form other user controls and the host page? The code generator sets all of them to Protected. In winforms this can be changed from the property sheet but, I suspect because web forms does not support visual inheritance, it might not support setting controls public.

I have a public event in hats and want to add a handler for this event in Clothing. If I can get a reference to Hats from within the Clothing code-behind , is it possible to add an event handler across user controls? The event will be raised in Hats.ascx.

I hope I’m only missing something very basic!

Thanks for the Help,

Terry Carroll
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform