protected void Page_Load(object sender, EventArgs e) { bool ClientIsValid = Authentication.Utility.AdminClientIsValid(Request.Url); if (ClientIsValid) { Authentication.Utility.AdminDomainAttributes dm = Authentication.Utility.AdminGetClient(Request.Url); Page.Title = dm.DmName; OrgTitle.InnerHtml = dm.DmName; Authentication.Utility.checklogo(dm.DmID, OrgTitle, logo); } }
protected void Page_Load(object sender, EventArgs e) { bool ClientIsValid = Authentication.Utility.AdminClientIsValid(Request.Url); if (ClientIsValid) { dm = Authentication.Utility.AdminGetClient(Request.Url); Page.Title = dm.DmName; OrgTitle.InnerHtml = dm.DmName; Session["Clientsettings"] = dm; Session["Admin_Customer"] = dm.DmID; Session["Customer_id"] = dm.DmID; Authentication.Utility.checklogo(dm.DmID, OrgTitle, logo); } HtmlGenericControl msg = (HtmlGenericControl)Master.FindControl("Msgbox"); //msg.InnerHtml = " Copyright © 2008 Credential Consultants Inc. All Rights Reserved.<a href='' style='text-decoration: none'>Privacy Policy</a>|<a href='' style='text-decoration: none'>Terms of Service</a>"; msg.InnerHtml = " Copyright © 2008 " + OrgTitle.InnerHtml + ". All Rights Reserved."; }
protected void Page_Load(object sender, EventArgs e) { if (Session["Authenticate"].ToString() == "Approved") { if (Session["Clientsettings"].ToString() != "Empty") { Authentication.Utility.AdminDomainAttributes dm = Authentication.Utility.AdminGetClient(Request.Url); Page.Title = dm.DmName; OrgTitle.InnerHtml = dm.DmName; Authentication.Utility.checklogo(dm.DmID, OrgTitle, logo); } else { Response.Redirect("~/Fail.aspx"); } switch (Session["Admin_Type"].ToString()) { case "ADMIN": clientblk.Visible = false; adminblk.Visible = true; break; case "USER": adminblk.Visible = false; clientblk.Visible = true; break; default: Response.Redirect("~/Fail.aspx"); break; } } else { Response.Redirect("~/Fail.aspx"); } }