protected void Page_Load(object sender, EventArgs e)
        {
            FPUserBO.CheckSession();
            fpuserVo = (FPUserVo)Session["FPUserVo"];
            int adviserId = Convert.ToInt32(ConfigurationManager.AppSettings["ONLINE_ADVISER"]);

            lblUserName.Text = " " + fpuserVo.UserName;

            if (!IsPostBack)
            {
                //Save();
                divTncSuccess.Visible = false;
                divtnc2.Visible       = true;


                //if (Request.UrlReferrer == null)
                //    Response.Redirect("Questionnaire.aspx");
                //else
                //{
                DataSet dsRiskClass = fpUserBo.GetRiskClass(fpuserVo.UserId, adviserId);
                if (dsRiskClass.Tables[0].Rows.Count > 0)
                {
                    lblRiskClass.Text = dsRiskClass.Tables[0].Rows[0]["XRC_RiskClass"].ToString();
                    lblRiskText.Text  = dsRiskClass.Tables[0].Rows[0]["ARC_RiskText"].ToString();
                }
                if (dsRiskClass.Tables[1].Rows.Count > 0)
                {
                    BindAssetsPiaChart(dsRiskClass.Tables[1]);
                }
                if (!string.IsNullOrEmpty(fpuserVo.RiskClassCode) && fpuserVo.IsProspectmarked)
                {
                    divtnc1.Visible = false;
                    divtnc2.Visible = false;
                }
                //}
            }
        }
        public static List <object> GetChartData()
        {
            FPUserBO fpUserBo = new FPUserBO();
            FPUserVo userVo   = new FPUserVo();

            userVo = (FPUserVo)HttpContext.Current.Session["FPUserVo"];
            int           adviserId = Convert.ToInt32(ConfigurationManager.AppSettings["ONLINE_ADVISER"]);
            List <object> chartData = new List <object>();

            chartData.Add(new object[]
            {
                "WAC_AssetClassification", "AllocationPercentage"
            });
            DataSet dsRiskClass = fpUserBo.GetRiskClass(userVo.UserId, adviserId);

            foreach (DataRow dr in dsRiskClass.Tables[1].Rows)
            {
                chartData.Add(new object[]
                {
                    dr["WAC_AssetClassification"], dr["AllocationPercentage"]
                });
            }
            return(chartData);
        }