void BindNotApprovedUsers() { if (!canManageUsers) { return; } siteUserPage = SiteUser.GetNotApprovedUsers( siteSettings.SiteId, pageNumber, pageSize, out totalPages ); if ((pageNumber > 1) && (pageNumber > totalPages)) { pageNumber = 1; siteUserPage = SiteUser.GetNotApprovedUsers( siteSettings.SiteId, pageNumber, pageSize, out totalPages ); } }
void BindNotApprovedUsers() { if (!canManageUsers) { return; } siteUserPage = SiteUser.GetNotApprovedUsers( siteSettings.SiteId, pageNumber, pageSize, out totalPages ); if ((pageNumber > 1) && (pageNumber > totalPages)) { pageNumber = 1; siteUserPage = SiteUser.GetNotApprovedUsers( siteSettings.SiteId, pageNumber, pageSize, out totalPages ); } log.Debug($"found {siteUserPage.Count} users not approved"); }
void BindNotApprovedUsers() { if (!canManageUsers) { return; } List <SiteUser> siteUserPage = SiteUser.GetNotApprovedUsers( siteSettings.SiteId, pageNumber, pageSize, out totalPages); if ((pageNumber > 1) && (pageNumber > totalPages)) { pageNumber = 1; siteUserPage = SiteUser.GetNotApprovedUsers( siteSettings.SiteId, pageNumber, pageSize, out totalPages); } //string pageUrl = SiteRoot // + "/MemberList.aspx?" // + "pagenumber={0}" // + "&needapproval=true"; //pgrMembers.PageURLFormat = pageUrl; //pgrMembers.ShowFirstLast = true; //pgrMembers.CurrentIndex = pageNumber; //pgrMembers.PageSize = pageSize; //pgrMembers.PageCount = totalPages; //pgrMembers.Visible = (totalPages > 1); //rptUsers.DataSource = siteUserPage; //rptUsers.DataBind(); }