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,
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL