protected void DropDownListtipopago_SelectedIndexChanged(object sender, EventArgs e) { if (DropDownListtipopago.SelectedValue == "1") { DropDownListbanco.Visible = false; TextBoxnumreferencia.Visible = false; referencia.Visible = false; entidad.Visible = false; DropDownListbanco.SelectedValue = null; } else { DropDownListbanco.Visible = true; TextBoxnumreferencia.Visible = true; referencia.Visible = true; DropDownListbanco.DataSource = ban.Consultarbancos(); DropDownListbanco.DataTextField = "banco"; DropDownListbanco.DataValueField = "idbanco"; DropDownListbanco.DataBind(); entidad.Visible = true; } }