How to expose server control properties from a Web User Control?
I have a dilemma. I created an ASP.Net Web User Control with an asp:label
on it. Then I dragged that control onto an .aspx web form. What I need
to do is to write code in my ASPX code behind that allows me to SET the label's
text property at runtime. In all the examples I am finding, it appears that
the server control's within a User Control can only be set from code WITHIN
the user control itself.
Does anyone know how to expose the text property of the label in the User
Control in such a way that the ASPX page it resides on can set the text property?
A simple example would be that when the client types in a value in a textbox
on the web page and then clicks a button, the Label on the User Control has
its text property set to the text in the text box.
Thanks in advance,
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center