protected void ddlActionForProspect_OnSelectedIndexChanged(object sender, EventArgs e) { int userId = 0; UserBo userBo = new UserBo(); bool isGrpHead = false; CustomerVo customerVo = new CustomerVo(); CustomerPortfolioVo customerPortfolioVo = new CustomerPortfolioVo(); PortfolioBo portfolioBo = new PortfolioBo(); CustomerBo customerBo = new CustomerBo(); int ParentId; if (Session[SessionContents.PortfolioId] != null) { Session.Remove(SessionContents.PortfolioId); } LinkButton lnkAction = (LinkButton)sender; //RadComboBox ddlAction = (RadComboBox)sender; GridDataItem item = (GridDataItem)lnkAction.NamingContainer; ParentId = int.Parse(gvLeadList.MasterTableView.DataKeyValues[item.ItemIndex]["C_CustomerId"].ToString()); Session["ParentIdForDelete"] = ParentId; customerVo = customerBo.GetCustomer(ParentId); Session["CustomerVo"] = customerVo; isGrpHead = customerBo.CheckCustomerGroupHead(ParentId); //to set portfolio Id and its details customerPortfolioVo = portfolioBo.GetCustomerDefaultPortfolio(ParentId); //Session[SessionContents.PortfolioId] = customerPortfolioVo.PortfolioId; Session["customerPortfolioVo"] = customerPortfolioVo; Session["IsDashboard"] = "false"; customerPortfolioVo = portfolioBo.GetCustomerDefaultPortfolio(ParentId); if (customerVo.IsProspect == 0) { //Session[SessionContents.PortfolioId] = customerPortfolioVo.PortfolioId; //Session["customerPortfolioVo"] = customerPortfolioVo; //ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "RMCustomerIndividualDashboard", "loadcontrol('RMCustomerIndividualDashboard','login');", true); } else { isGrpHead = customerBo.CheckCustomerGroupHead(ParentId); if (isGrpHead == false) { ParentId = customerBo.GetCustomerGroupHead(ParentId); } else { ParentId = customerVo.CustomerId; } Session[SessionContents.FPS_ProspectList_CustomerId] = ParentId; Session[SessionContents.FPS_AddProspectListActionStatus] = "View"; ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "loadcontrol('AddProspectList','login');", true); //Session[SessionContents.FPS_TreeView_Status] = "FinanceProfile"; } }