コード例 #1
0
        private void LoadDuLieuPhim()
        {
            string s = Request.QueryString["QuocGia"].Trim();

            if (!string.IsNullOrEmpty(s) && !s.Equals("Quốc Gia"))
            {
                List <Phim> dsp = phimbll.HienThiTheoQuocGia(s);
                datalstPhim.Controls.Clear();
                if (dsp.Count > 0)
                {
                    datalstPhim.DataSource = dsp;
                    datalstPhim.DataBind();
                }
            }
            else
            {
                List <Phim> dsp = phimbll.HienThiTatCaPhim();
                datalstPhim.Controls.Clear();
                if (dsp.Count > 0)
                {
                    datalstPhim.DataSource = dsp;
                    datalstPhim.DataBind();
                }
            }
        }