示例#1
0
    public void GetBrand()
    {
        Object    NameBrand = new Object();
        DataTable dt        = BSLAYER.BrandName(NameBrand);

        Ddlbrand.DataSource     = dt;
        Ddlbrand.DataTextField  = "Product_Brand";
        Ddlbrand.DataValueField = "Product_Brand";
        Ddlbrand.DataBind();
        Ddlbrand.Items.Insert(0, "--Filter By Brand--");
    }
示例#2
0
    public void GetBrandByCategory()
    {
        Object CategoryByBrandFill = new Object();

        CategoryByBrandFill.Category_Name = HiddenCatagoryName.Value;
        DataTable dt = BSLAYER.BrandFillByCategory(CategoryByBrandFill);

        Ddlbrand.DataSource     = dt;
        Ddlbrand.DataTextField  = "Product_Brand";
        Ddlbrand.DataValueField = "Product_Brand";
        Ddlbrand.DataBind();
        Ddlbrand.Items.Insert(0, "--Filter By Brand--");
    }