Hello all, I am trying to interact with Master Page controls from its Content Page...
In content page I have included this :
<%@ MasterType VirtualPath="~/MasterPage.Master" %>
and this is the code behind Home.aspx.cs (on page load event) :
protected void Page_Load(object sender, EventArgs e)
{
if (Session.Count > 1)
{
HyperLink link = Master.FindControl("loginlink") as HyperLink;
link.Text = "Log Out";
}
}
Though I have done this, text of Link not changed..
Help me with appropriate solution..