/// <summary> /// Handles the Load event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void Page_Load(object sender, EventArgs e) { Title = "Пользователи - LeadForce"; var user = CurrentUser.Instance; gridUsers.AddNavigateUrl = UrlsData.AP_UserAdd(); gridUsers.Actions.Add(new GridAction { Text = "Карточка пользователя", NavigateUrl = string.Format("~/{0}/Users/Edit/{{0}}", CurrentTab), ImageUrl = "~/App_Themes/Default/images/icoView.png" }); if ((AccessLevel)user.AccessLevelID != AccessLevel.SystemAdministrator) { gridUsers.SiteID = SiteId; gridUsers.Columns[1].Visible = false; } }