Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (User == null)
            {
                SecurityHelper.RedirectToLoginPage(false);
            }

            ResourceMastersAdmin master = Page.Master as ResourceMastersAdmin;


            if (!IsPostBack)
            {
                chkRoleList.DataSource     = AllowedRoles;
                chkRoleList.DataTextField  = "RoleName";
                chkRoleList.DataValueField = "RoleName";
                chkRoleList.DataBind();

                if (UserToEdit != null)
                {
                    PopulateUser();
                }
            }

            master.TabGroup    = GetGlobalResourceObject("Resource", "TabAccount").ToString();
            master.SelectedTab = GetGlobalResourceObject("Resource", "TemplateUserMenuText").ToString().ToLower().Replace(" ", string.Empty);

            ltlBackLink.Text = GetLocalResourceObject("ltlBackLink.Text").ToString();
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DivMessage       = divMessage;
            lblUserName.Text = User.UserName;

            // Set active Tab
            ResourceMastersAdmin master = Page.Master as ResourceMastersAdmin;

            master.TabGroup    = GetGlobalResourceObject("Resource", "TabAccount").ToString();
            master.SelectedTab = GetGlobalResourceObject("Resource", "TemplateChangePasswordMenuText").ToString().ToLower().Replace(" ", string.Empty);
        }