private void ValuationGridBind(int IsValued) { DataSet dsGetValuation = new DataSet(); try { dsGetValuation = OnlineOrderBackOfficeBo.GetAdviserCustomersAllMFAccounts(IsValued, advisorId); //if (dsGetValuation.Tables[0].Rows.Count > 0) //{ gvMFAccounts.DataSource = dsGetValuation; gvMFAccounts.DataBind(); if (Cache["MFAccounts" + userVo.UserId] == null) { Cache.Insert("MFAccounts" + userVo.UserId, dsGetValuation); } else { Cache.Remove("MFAccounts" + userVo.UserId); Cache.Insert("MFAccounts" + userVo.UserId, dsGetValuation); } //} } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "MFAccountValuation.ascx.cs:ValuationGridBind()"); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }