Beispiel #1
0
    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;
        }
    }
Beispiel #2
0
    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;
        }
    }