Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have a label on my usercontrol which has the default text "welcome". It is placed on a web page, and I want the user control label to change when a button is pushed.
Posted
Updated 3-May-13 1:55am
v4
Comments
vijay__p 3-May-13 7:39am    
You can find Label from your usercontrol in Page and change Text of it.
arthamsai 3-May-13 8:01am    
exactly what i want is i have label in usercontrol with label text="welcome" and
i have a webform(aspx page) in that i have button when this button is fired i have to
change text of usercontrol label
Erik Rude 3-May-13 7:44am    
You could make your Label text a property of your User Control so you could set it from outside.

1 solution

Have a look at change label text in usercontrol at run time. It will definately help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900