Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
Hi,

I want to clear the text of a label from code behind in C# how can that be achieved
Posted
Updated 26-Nov-13 22:50pm
v2

1 solution

you could have googled to get this simple answer :)


C#
labelcontrol.Text = string.Empty;
                //or
               labelcontrol.Text = "";
 
Share this answer
 
Comments
CHill60 27-Nov-13 17:18pm    
No idea why your answer has been down-voted so my 5 to balance it up
Karthik_Mahalingam 27-Nov-13 23:18pm    
Thanks dude :)

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