protected void BindAdviserClientKYCStatusList() { try { DataTable dtAdviserClientKYCStatusList = new DataTable(); dtAdviserClientKYCStatusList = onlineOrderBackOfficeBo.GetAdviserClientKYCStatusList(adviserVo.advisorId, GetSelectedFilterValue(), (string.IsNullOrEmpty(txtClientCode.Text))?string.Empty:txtClientCode.Text); if (dtAdviserClientKYCStatusList.Rows.Count > 0) { if (Cache["KYCList" + adviserVo.advisorId] == null) { Cache.Insert("KYCList" + adviserVo.advisorId, dtAdviserClientKYCStatusList); } else { Cache.Remove("KYCList" + adviserVo.advisorId); Cache.Insert("KYCList" + adviserVo.advisorId, dtAdviserClientKYCStatusList); } gvKYCStatusList.DataSource = dtAdviserClientKYCStatusList; gvKYCStatusList.DataBind(); } else { gvKYCStatusList.DataSource = dtAdviserClientKYCStatusList; gvKYCStatusList.DataBind(); } } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "OnlineClientAccess.ascx.cs:BindAdviserClientKYCStatusList()"); object[] objects = new object[1]; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }