Beispiel #1
0
        protected void ddtLoaiHoa_SelectedIndexChanged(object sender, EventArgs e)
        {
            string maLoaiHoa = ddtLoaiHoa.SelectedValue;

            rptHoa.DataSource = ShopBus.LayDSHoa(maLoaiHoa);
            rptHoa.DataBind();
        }
Beispiel #2
0
        private void load()
        {
            rptHoa.DataSource = ShopBus.LayDSHoa();
            rptHoa.DataBind();

            ddtLoaiHoa.DataSource = LoaiHoaBUS.LayDSLoaiHoa();

            ddtLoaiHoa.DataTextField  = "TenLoaiHoa";
            ddtLoaiHoa.DataValueField = "MaLoaiHoa";
            ddtLoaiHoa.AutoPostBack   = true;
            ddtLoaiHoa.DataBind();
        }