protected void hiddenassociation_Click(object sender, EventArgs e) { string val = Convert.ToString(hdnMsgValue.Value); if (val == "1") { bool DeleteAccount; CustomerAccountsVo customeraccountvo = (CustomerAccountsVo)Session["customerAccountVo"]; int Account = customeraccountvo.AccountId; DeleteAccount = customerAccountsBo.DeleteInsuranceAccount(Account); Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "leftpane", "loadcontrol('ViewInsuranceDetails','none');", true); } }