protected void Page_Load(object sender, EventArgs e) { OrderControl orderClothesUI = new OrderControl(); if (!IsPostBack) { listproduct.DataSource = orderClothesUI.ShowNewCloth(20); listproduct.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { OrderControl orderClothesUI = new OrderControl(); string ID = Request.QueryString["ID"]; if (!IsPostBack) { ConnectDB db = new ConnectDB(); DLChiTiet.DataSource = orderClothesUI.ShowClothByID(ID.ToString()); DLChiTiet.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { orderControl = (OrderControl)Session["OrderControl"]; if (Session["Customer"] != null) { orderControl.customer = (Data.Customer)Session["Customer"]; lbHoten.Text =" HỌ TÊN: "+orderControl.customer.name.ToUpper(); lbEmail.Text ="EMAIL: "+orderControl.customer.email; lbDiaChi.Text ="ĐỊA CHỈ: "+ orderControl.customer.address; lbSoDienThoai.Text = "SỐ ĐIỆN THOẠI: "+orderControl.customer.phoneNumber; pnShow.Visible = false; pnCustomerDetail.Visible = true; } else pnCustomerDetail.Visible = false; }