<%@ MasterType VirtualPath="~/MasterPage.Master" %>
protected void Page_Load(object sender, EventArgs e) { if (Session.Count > 1) { //Label lbl = Master.FindControl("userloginstatuslabel") as Label; //lbl.Visible = true; HyperLink link = Master.FindControl("loginlink") as HyperLink; link.Text = "Log Out"; } }
<%@ MasterType VirtualPath="~/MasterPage.master" %>
MasterPageFile
@Page
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" %>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)