protected void Page_Load(object sender, EventArgs e)
        {
            var dt = CSDL.LayDuLieu("Select * From THUONGHIEU");

            datalistTHUONGHIEU.DataSource = dt;
            datalistTHUONGHIEU.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            var idSP = "0";

            if (Request.QueryString["id_sp"] != null)
            {
                idSP = Request.QueryString["id_sp"];
            }

            datalistDetail.DataSource = CSDL.LayDuLieu("Select * From SANPHAM where IDSP=" + idSP);
            datalistDetail.DataBind();
        }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int idThuongHieu = 0;

            if (Request.QueryString["thuong_hieu_id"] != null)
            {
                idThuongHieu = Int32.Parse(
                    Request.QueryString["thuong_hieu_id"]);
            }


            var dt = CSDL.LayDuLieu("Select * From SANPHAM where TH_ID=" + idThuongHieu);

            DataList1.DataSource = dt;
            DataList1.DataBind();
        }