private void DoSearch() { CSBooster_DataAccessMRS csb = new CSBooster_DataAccessMRS(); IMultipleResults results = csb.hisp_Navigation_GetNavigations(0, currentPage, PAGESIZE); var NavRSInfo = results.GetResult <_4screen.CSB.DataAccess.Data.CSBooster_DataAccessMRS.RecordNumerInfos>().FirstOrDefault(); List <hitbl_NavigationStructure_NST> Navigations = results.GetResult <hitbl_NavigationStructure_NST>().ToList(); numberItems = NavRSInfo.RowTotal; int checkedPage = IPagTop.CheckPageRange(this.currentPage, numberItems); if (checkedPage != currentPage) // Reload if the current and the checked page are different { this.currentPage = checkedPage; DoSearch(); } else { IPagTop.InitPager(currentPage, numberItems); SaveState(); if (numberItems > 0) { RepNav.DataSource = Navigations; RepNav.DataBind(); } else { } } }
protected void OnDeleteButtonClick(object sender, EventArgs e) { CSBooster_DataAccessMRS csb = new CSBooster_DataAccessMRS(); csb.hisp_Navigation_DeleteNavigation(((LinkButton)sender).CommandArgument.ToGuid()); DoSearch(); }