protected override void OnLoad(EventArgs e) { string userName = this.UserName; bool isAuthorized = this.IsAuthorized; MasterKiosk ucMasterPage = (MasterKiosk)this.Master; ucMasterPage.ShowTheContent(this.IsAuthorized); if (!this.Page.IsPostBack) { if (this.UserId != 0) { FacilityDS.FacilityDSDataTable dt = BllProxyFacility.GetFacilityByUser(this.UserId); facilityId = 0; if (dt.Rows.Count == 0) { this.SetFacilityName("No Facility assigned to the username: "******"Logged out..."); } } base.OnLoad(e); }
public void SetFacilityName(string facilityName) { MasterKiosk master = (MasterKiosk)this.Master; master.FacilityName = facilityName; }