What I have done in the past is have a base class for my master pages. Then they all inherit from this.
Then each content page has a reference to the base class too, now in the page load of the content page, you can set the shared property of the master page.
Then in the Master page load, you can read those properties to the user control. ie;
In you App_Code you have this class;
public
class BaseWebUIMasterPage : MasterPage
{
private String _mastheadTitle;
public String MastHeadTitle
{
get {return _mastheadTitle;}
set {_mastheadTitle = value;}
}
}
Then in your master pages,
public
partial class Masters_Cdb : BaseWebUIMasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
// Set the control value
control1.pageTitle = MastHeadTitle;
}
Then in each content page, have this in the top
<%
@ MasterType TypeName="BaseWebUIMasterPage" %>
Then in the page load of each content page, you can access the property Master.MastHeadTitle = "my page title"
And in the master page it will set the control value.
We find this really extensable.
Hth,
Cheers,
Steve
Please remember to 'Mark as Answer' if this post answered your question!