Accessing user control from code behind
Hi,
Can somebody please let me know how to access user control from the code behind of the aspx page on which I have embedded the user control.
For example I have a label in my user control. I want to change the label from code behind. How can I do that?
Regards,
Arnab.
PHANI NADIGADDAPosted Feb 23, 2007, 1:43 PM
Implement a property which sets the label and you set the property value from your code behind.
Or
Make a session variable that contains what you want to set the label and get the session variable in user control development.
I hope it made sense to you.
ALL THE BEST