Thanks, but I need to access to the content page from the master page.
Now I have programed it like this:
The Label1 is in the Content Page, this Source is in the MasterPage.
in the Page Load:
if (Page.title=="MyContentPage")
{
GetControls(this, "Label1");
Label myLabel = (Label)Convert.ChangeType(myC,
typeof(Label));
myLabel.Text = "other Text";
}
the procedure GetControls:
public void GetControls(Control c, string FindControl)
{
foreach (Control cc in c.Controls)
{
if (cc.ID == FindControl)
{
myC = cc;
break;
}
if (cc.Controls.Count>0)
GetControls(cc,FindControl);
}
}
myC is a private property:
private Control myC;