protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); int zoneID = ConvertUtility.ToInt32(dropZones.SelectedValue); AppEnv.ZoneSelected = zoneID; if (!isManager && !isDeployer) { dtgDeployList.DataSource = DistributionDB.GetDeployByZoneID(zoneID, CurrentAdminInfo.User_ID); } else { int totalRecord; dtgDeployList.DataSource = DistributionDB.GetDeployByZoneID(zoneID, dtgDeployList.PageSize, dtgDeployList.CurrentPageIndex, out totalRecord); dtgDeployList.VirtualItemCount = totalRecord; } dtgDeployList.DataBind(); }