Can the elements of the Master Page be accessed from the Content Page?
Lets say I have MasterPage1 and ContentPage1 that inherits from the MasterPage1, and the MasterPage1 has a button: Button1.
Can I change the property of that button from the content page, for example to make Button1 invisible, inactive etc? How can I accomplish this?
I am using .net2.0
You have to put a reference to the MasterPage in your page/user control markup.
Then in the code-behind, you just cast the Page.MasterPage to your MasterPage and access its properties.