Exemple #1
0
        protected void btnFilterProduct_Click(object sender, EventArgs e)
        {
            int       categoryid = int.Parse(DropDownList1.SelectedValue);
            DataTable dt         = new DataTable();

            dt = bus.SearchProductCateProduct(categoryid);
            if (dt.Rows.Count <= 0)
            {
                Response.Write("<script>alert('Không tìm thấy sản phẩm phù hợp!')</script>");
            }
            else
            {
                GridView1.DataSource = dt;
                GridView1.DataBind();
            }
        }