5
Contributors
4
Replies
28
Views
4 Years
Discussion Span
Last Post by ggamble
0

Create an instance of the Master page, find the control on master page and do what you need to do ... don't make it overy complicated.

In the example below I have a label on the master page called "lblMasterPageLabel".
In the content page that is referencing the master page I can write to that label like this:

        MasterPage mp = new MasterPage();
        mp = Master;

        Label lb = (Label)mp.FindControl("lblMasterPageLabel");
        lb.Text = "Found It";`
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.