public void load_pro() { if (ck.checkQuantity(Request.QueryString["id"])) { id = Convert.ToInt32(Request.QueryString["id"]); } category_product_detail p = cl.getProduct(id); lblID.Text = p.id_pro + ""; lblName.Text = p.pro_name; lblPrice.Text = p.pro_price + ""; Repeater3.DataSource = p.product_images; Repeater3.DataBind(); }
public void load_pro() { if (ck.checkQuantity(Request.QueryString["id"])) { id = Convert.ToInt32(Request.QueryString["id"]); } else { Response.Redirect("404.html"); } p = cl.getProduct(id); lblID.Text = p.id_pro + ""; txtName.Text = p.pro_name; txtPrice.Text = p.pro_price + ""; idCate = p.id_cat; Repeater3.DataSource = p.product_images; Repeater3.DataBind(); }