I have tried it, doesn't work. Maybe I missed something:
Masterpage
<asp:Label ID="Label1" runat="server" Text="Label" ForeColor="Blue">blue text</asp:Label>
Code:
private string _color;
public string Color
{
get { return _color; }
set { _color = value; }
}
Contentpage:
protected void Page_Load(object sender, EventArgs e)
{
Master.Color= "red";
}
How can I change color of "Label1"? There should be a connection to Label1 but I don't know where (sorry, I am a learner!)