how to get label value in design page(aspx) in asp.net
how to get label value in design page(aspx) in asp.net
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ring ZhongPosted Dec 26, 2013, 4:07 AM
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