Information générale
Titre:
Where's the Reference?
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement