protected void Page_Load(object sender, EventArgs e) { Classes.ProfileEditPermission pep = new Classes.ProfileEditPermission(); if (pep.getEditPremissions(Convert.ToInt32(Page.RouteData.Values["Id"].ToString()), Convert.ToInt32(Session["UserId"]))) { PanelShow.Visible = true; PanelHide.Visible = false; } else { PanelShow.Visible = false; PanelHide.Visible = true; } }
protected void Page_Load(object sender, EventArgs e) { Classes.ProfileEditPermission pep = new Classes.ProfileEditPermission(); if (pep.getEditPremissions(Convert.ToInt32(Page.RouteData.Values["Id"].ToString()), Convert.ToInt32(Session["UserId"]))) { PanelShow.Visible = true; PanelHide.Visible = false; string HostUrl = ConfigurationManager.AppSettings["HostUrl"].ToString(); //Mouseover ImageButtonPhotoSave.Attributes.Add("onmouseover", "this.src='" + HostUrl + "/Images/Buttons/save-on.png'"); ImageButtonPhotoSave.Attributes.Add("onmouseout", "this.src='" + HostUrl + "/Images/Buttons/save-off.png'"); } else { PanelShow.Visible = false; PanelHide.Visible = true; } }