protected override void OnLoad(EventArgs e) { // StaffSessionAuthorize.CheckCooikie(); Model_Users u = UserSessionController.FrontAppAuthorization(this); if (u != null) { this.UserActive = u; if (!u.EmailVerify) { Page.Master.FindControl("alertbar").Visible = true; LinkButton l = (LinkButton)Page.Master.FindControl("sendmailverify"); l.CommandArgument = u.UserID.ToString(); if (!string.IsNullOrEmpty(Request.QueryString["resend"])) { Page.Master.FindControl("alertbarsentmailcompleted").Visible = true; //Page.Master.FindControl("alertbar").Visible = false; } else { Page.Master.FindControl("alertbarsentmailcompleted").Visible = false; } } //Page.ClientScript.RegisterClientScriptBlock(GetType(), "alertVerify", "alertshow();", true); } base.OnLoad(e); }
protected void Page_Load(object sender, EventArgs e) { Page p = new Page(); Model_Users u = UserSessionController.FrontAppAuthorization(p); if (u != null) { lblprofile.Text = "<i class=\"fa fa-user\" aria-hidden=\"true\"></i> " + u.FirstName + " | <a style=\"color:#fff;\" href=\"http://member.keenprofile.com/logout\" />Log out <i class=\"fa fa-sign-out\" aria-hidden=\"true\"></i></a>"; } }
protected void Page_Load(object sender, EventArgs e) { Page p = new Page(); Model_Users u = UserSessionController.FrontAppAuthorization(p); if (u != null) { string fullname = u.FirstName + " " + u.LastName; profilename.Text = fullname; string strImageUrl = "Theme/fronttheme/assets/keenimg/profileempty.png"; if (!string.IsNullOrEmpty(u.PicturePath)) { strImageUrl = u.PicturePath; } imageProfile.ImageUrl = strImageUrl; imageProfile2.ImageUrl = strImageUrl; imageProfile2.AlternateText = fullname; // lblprofile.Text = "<i class=\"fa fa-user\" aria-hidden=\"true\"></i> " + u.FirstName + " | <a style=\"color:#fff;\" href=\"http://member.keenprofile.com/logout\" />Log out <i class=\"fa fa-sign-out\" aria-hidden=\"true\"></i></a>"; } }