How to get label value in design page(aspx) in asp.net
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ring ZhongRank #6,843 · 255 reputationPosted Dec 25, 2013, 11:07 PM EST
public Label HeaderLabel
{
get
{
return lblHeader;
}
}
You can get and set any property of label from the aspx.cs page
UserControl1.HeaderLabel.Text = "Test111";
hope it helps