コード例 #1
0
        private int GetPopularProducts()
        {
            int count = 0;

            DataTable dtPopularProduct = objBAL.GetPopularProducts(shelfID);

            count = dtPopularProduct.Rows.Count;

            if (count > 0)
            {
                dtPopularProduct = objBAL.InsertDollarSign(dtPopularProduct);

                dltPopularProduct.DataSource = dtPopularProduct;
                dltPopularProduct.DataBind();
            }

            return(count);
        }