protected void MallPhoto() { int id = Convert.ToInt32(ViewState["Pro_id"]); DataTable dt = ProductService.SelectID(id); if (dt != null && dt.Rows.Count != 0) { LVPD2.DataSource = dt; LVPD2.DataBind(); ViewState["Qty"] = dt.Rows[0]["Qty"].ToString(); } }
/*商品详情*/ private void BindProduct2() { int id = Convert.ToInt32(ViewState["Pro_id"]); DataTable dt = ProductService.SelectID(id); if (dt != null && dt.Rows.Count != 0) { LVPD2.DataSource = dt; LVPD2.DataBind(); ViewState["Pro_price"] = dt.Rows[0]["Pro_price"].ToString(); } }
protected void LVPD2_PreRender(object sender, EventArgs e) { LVPD2.DataBind(); }