Esempio n. 1
0
    public void fillstatedrop()//===FILL STATE DROPDOWN FN=====;
    {
        Filldropdownclass filldropdownclass = new Filldropdownclass();

        DataTable statedatatable = filldropdownclass.dropdownfillState();

        state_drp.DataSource    = statedatatable;
        state_drp.DataTextField = "StateName";
        state_drp.DataBind();
        state_drp.Items.Insert(0, new ListItem("--SELECT--", "NA"));
    }
Esempio n. 2
0
    public void filllocationdrop()//===FILL LOCATION DROPDOWN FN=====;
    {
        Filldropdownclass filldropdownclass = new Filldropdownclass();

        DataTable statedatatable = filldropdownclass.dropdownfilllocation(state_drp.SelectedItem.Value);

        location_drp.DataSource    = statedatatable;
        location_drp.DataTextField = "Location";
        location_drp.DataBind();
        location_drp.Items.Insert(0, new ListItem("--SELECT--", "NA"));
    }
Esempio n. 3
0
    public void subcategory()//===FILL SUBCATEGORY DROPDOWN FN=====;
    {
        Filldropdownclass filldropdownclass = new Filldropdownclass();

        DataTable statedatatable = filldropdownclass.dropdownfillsubcategory(i_need_drp.SelectedValue);

        subcategory_drop.DataSource     = statedatatable;
        subcategory_drop.DataValueField = "SubKey";
        subcategory_drop.DataTextField  = "SubItem";
        subcategory_drop.DataBind();
        subcategory_drop.Items.Insert(0, new ListItem("--SELECT--", "NA"));
    }
Esempio n. 4
0
    public void fillineeddrop()//===FILL NEED DROPDOWN FN=====;
    {
        Filldropdownclass filldropdownclass = new Filldropdownclass();

        DataTable statedatatable = filldropdownclass.dropdownfilllNEED();

        i_need_drp.DataSource     = statedatatable;
        i_need_drp.DataValueField = "KeyID";
        i_need_drp.DataTextField  = "KeyWord";
        i_need_drp.DataBind();
        i_need_drp.Items.Insert(0, new ListItem("--SELECT--", "NA"));
    }
Esempio n. 5
0
    public void fillprodcategory4()//===FILL prodcat1 DROPDOWN FN=====;
    {
        Filldropdownclass filldropdownclass = new Filldropdownclass();

        DataTable statedatatable = filldropdownclass.dropdownfilllNEED();

        prod_cat_drop4.DataSource     = statedatatable;
        prod_cat_drop4.DataValueField = "KeyID";
        prod_cat_drop4.DataTextField  = "KeyWord";
        prod_cat_drop4.DataBind();
        prod_cat_drop4.Items.Insert(0, new ListItem("--SELECT--", "0"));
    }