private void grdPagination_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { int intUserID = (int)this.grdPagination.DataKeys[e.Item.ItemIndex]; BusinessServices.Unit objUnit; objUnit = new BusinessServices.Unit(); objUnit.RemoveAdministrator(this.m_intUnitID, intUserID, UserContext.UserID); this.ShowPagination(this.grdPagination.CurrentPageIndex); int periodicReportsCount = PeriodicReportCountUser(intUserID); if (periodicReportsCount > 0) { Response.Redirect("/Reporting/PeriodicReportList.aspx?user="******"&isoninactivate=true"); } }