I have a custom web control having two labels. On the display page I want to modify the text of one of the labels depending on a condition.
How to achieve?
I have a custom web control having two labels. On the display page I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The answer depends on how your control in defined. If the label is public you simply access the label through the control instance
If it private you will need a public method in the control to change the text, e.g.
and then call the method