Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string masp = Request.QueryString["masp"];

            if (!BUS_SanPham.KTSPTonTai(masp))
            {
                Response.Redirect("Shop_Product.aspx");
            }
            else
            {
                DTO_SanPham sp = BUS_SanPham.LaySanPham(masp);
                imgAnhMinhHoa.ImageUrl = "images/shop/" + sp.AnhMinhHoa;
                lblTenSP.Text          = sp.TenSP;
                lblGiaTien.Text        = sp.GiaTien + "$";
            }
        }