Hi
Using this code we can access the master control to content page
protected void Button1_Click(object sender, EventArgs e)
{
Label lblName = FindControlRecursive(this.Master, “label1”) as Label;
TextBox1.Text = lblName.Text;
}
public static Control FindControlRecursive(Control Root, string Id)
{
if (Root.ID == Id)
return Root;
foreach (Control Ctl in Root.Controls)
{
Control FoundCtl = FindControlRecursive(Ctl, Id);
if (FoundCtl != null)
return FoundCtl;
}
return null;
}