void confCombo(DropDownList combo, string tabla, string condicion = "", Boolean seleccione = true, string dataField = "id", string textField = "nombre") { ClsCombos cbo = new ClsCombos(); try { combo.DataSource = cbo.fill(tabla, condicion, seleccione); combo.DataValueField = dataField; combo.DataTextField = textField; combo.DataBind(); } catch (Exception ex) { throw ex; } }
void confChk(RadioButtonList rbl, string tabla, string condicion = "", Boolean seleccione = true, string dataField = "id", string textField = "nombre") { ClsCombos cbo = new ClsCombos(); try { rbl.DataSource = cbo.fill(tabla, condicion, seleccione); rbl.DataValueField = dataField; rbl.DataTextField = textField; rbl.DataBind(); } catch (Exception ex) { throw ex; } }