protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); customerVo = (CustomerVo)Session["customerVo"]; string path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString()); string assetGroupCode = "Ins"; string category = "ULIP"; DataSet ds = customerAccountBo.GetCustomerInsuranceAccounts(customerVo.CustomerId, assetGroupCode); LoadInsuranceIssuerCode(path); lblAllocation.Visible = false; lblPurchasePrice.Visible = false; lblUnits.Visible = false; btnSubmit.Visible = false; if (Session["table"] != null) { Table tb = (Table)Session["table"]; //Page.Controls.Add(tb); this.PlaceHolder1.Controls.Add(tb); lblUnits.Visible = true; lblPurchasePrice.Visible = true; lblAllocation.Visible = true; btnSubmit.Visible = true; } if (ds.Tables[0].Rows.Count == 0) { //lblMessage.Text = "You Dont have an account for this category.."; //lblMessage.Visible = true; } //else //{ // ddlAccountId.DataSource = ds.Tables[0]; // ddlAccountId.DataTextField = ds.Tables[0].Columns["CIA_AccountNum"].ToString(); // ddlAccountId.DataValueField = ds.Tables[0].Columns["CIA_AccountId"].ToString(); // ddlAccountId.DataBind(); //} }