W
Weston Fryatt
Can you change text or add controls dynamically on a Master Page (not in the
Content Place Holder)?
Content Place Holder)?
Can you change text or add controls dynamically on a Master Page (not in
the Content Place Holder)?
Yes, but if you anticipate it in advance, you can make the label's text a
property of the master page
public string LblHeading
{
get { return this.lblHeading.Text; }
set { this.lblHeading.Text = value; }
}
Then, in the content page, all you have to write is
this.Master.LblHeading = "Hello World";
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.