Example #1
0
 public void DisplayProducts()
 {
     lstCategory.DataSource = categoryLogic.GetAllCategory().DefaultView;
     lstCategory.DataBind();
     //Hiển thị câu thông báo không có sản phẩm nào
     if (categoryLogic.GetAllCategory().Rows.Count == 0)
     {
         lblNotFoundProduct.Visible = true;
     }
     else
     {
         lblNotFoundProduct.Visible = false;
     }
 }
 /// <summary>
 /// DisplayCategorySlide
 /// </summary>
 public void DisplayCategorySlide()
 {
     lstCategory.DataSource = categoryLogic.GetAllCategory().DefaultView;
     lstCategory.DataBind();
     //Hiển thị câu thông báo không có sản phẩm nào
     if (categoryLogic.GetAllCategory().Rows.Count != 0)
     {
         pnl_category_slide.Visible = true;
     }
     else
     {
         pnl_category_slide.Visible = false;
     }
 }