public void ddlAccountDetails_SelectedIndexChanged(object sender, EventArgs e) { if (ddlAccountDetails.SelectedIndex != 0) { // txtholdingAmt.Text = amount.ToString(); trHoldingAndTrnx.Visible = true; trAddTransaction.Visible = false; DivTransaction.Visible = false; } else { trHoldingAndTrnx.Visible = false; } if (ddlAccountDetails.SelectedValue == "0") { trHoldingAndTrnx.Visible = false; trholdingamount.Visible = false; btnSubmit.Visible = false; trAddTransaction.Visible = false; DivTransaction.Visible = false; } if (ViewState["BankId"] != null) { ViewState.Remove("BankId"); } bankId = int.Parse(ddlAccountDetails.SelectedValue); if (bankId != 0) { holdingAmount = customerAccountBo.GetHoldingBalance(bankId); txtholdingAmt.Text = holdingAmount.ToString(); } else { txtholdingAmt.Text = "0"; } //{ // txtholdingAmt.Text = customeraccountVo.Amount.ToString(); //} //else //{ // txtholdingAmt.Text="0"; //} // Session["BankAccId"] = ddlAccountDetails.SelectedValue.ToString(); }