Ejemplo n.º 1
0
    protected void LoadCompanies()
    {
        connectionstring concls = new connectionstring();
        ylibWebClass ylib = new ylibWebClass(concls.connect());
        FillWebControlClass FCC = new FillWebControlClass();

        FCC.FillDropDownList(ref ddlCompany, ylib.GiveDataTable_BySQLStatement("select CompanyId,CompanyName from Company"), "CompanyName", "CompanyId", true, false, "");
    }
Ejemplo n.º 2
0
    private void LoadDropDownLists()
    {
        FillWebControlClass FCC = new FillWebControlClass();

        //drop down filling through method 1
        dtBas_Brands=dsBas_Brands.GetData();
        FCC.FillDropDownList(ref ddlBas_Brands, dtBas_Brands, "Br_Name", "Br_Code");

        //drop down filling through method 2
        connectionstring concls = new connectionstring();
        ylibWebClass ylib = new ylibWebClass(concls.connect());
        FCC.FillDropDownList(ref ddlBas_Warranties,ylib.GiveDataTable_BySQLStatement("select WarCode,WatName from Bas_Warranties"), "WatName", "WarCode");
    }