Example #1
0
        public void GetProducts(int CatagoryID = 0)
        {
            DAL.Class1 k = new DAL.Class1();



            dlProducts.DataSource = null;
            if (CatagoryID == 0)
            {
                DataTable dt = new DataTable();
                dt = k.GetAllProducts();
                dlProducts.DataSource = dt;
            }

            dlProducts.DataBind();
        }