예제 #1
0
    public void GetProductList()
    {
        Object ProductIndividual = new Object();

        ProductIndividual.Product_Name  = HiddenProductName.Value;
        ProductIndividual.Product_Brand = HiddenBrandName.Value;
        ProductIndividual.Category_Name = HiddenCatagoryName.Value;
        DataTable dt = BSLAYER.IndividualProduct(ProductIndividual);
        int       r  = dt.Rows.Count;

        if (r < 1)
        {
            DdlBrand.Visible   = false;
            DdlPacket.Visible  = false;
            DdlSort.Visible    = false;
            PanelAlert.Visible = true;
            lbtcart.Visible    = false;
        }
        else
        {
            DdlBrand.Visible     = true;
            DdlPacket.Visible    = true;
            DdlSort.Visible      = true;
            PanelAlert.Visible   = false;
            lbtcart.Visible      = true;
            DataList1.DataSource = dt;
            DataList1.DataBind();
        }
    }
예제 #2
0
    public void GetProducts()
    {
        Object ProductIndividual = new Object();

        ProductIndividual.Product_Name = DdlProduct.SelectedValue;
        DataTable dt = BSLAYER.IndividualProduct(ProductIndividual);
        int       r  = dt.Rows.Count;

        DataList1.DataSource = dt;
        DataList1.DataBind();
    }