Esempio n. 1
0
    public void GetProductList()
    {
        Object BoxSearch = new Object();

        BoxSearch.Product_Name        = HiddenSearch.Value;
        BoxSearch.Product_Brand       = HiddenSearch.Value;
        BoxSearch.Product_Description = HiddenSearch.Value;
        DataTable dt = BSLAYER.SearchBox(BoxSearch);
        int       r  = dt.Rows.Count;

        if (r < 1)
        {
            PanelAlert.Visible = true;
        }
        else
        {
            PanelAlert.Visible   = false;
            DataList1.DataSource = dt;
            DataList1.DataBind();
        }
    }