string strsel = ""; String connectSQL = ConfigurationManager.ConnectionStrings["ql"].ConnectionString; SqlConnection conn = new SqlConnection(connectSQL); if (Request["masp"] != null) { String id = Request["masp"]; strsel = "SELECT * FROM tbl_QuanAo WHERE MaSP = '" + id + "'"; DataTable data = new DataTable(); SqlDataAdapter da = new SqlDataAdapter(strsel, conn); da.Fill(data); if (data.Rows.Count == 1) { lbTenSP.Text = (String)data.Rows[0]["TenSP"]; lbMaSP.Text = (String)data.Rows[0]["MaSP"]; imgSP.ImageUrl = "Images/" + (String)data.Rows[0]["Hinh"]; lbGia.Text = string.Format(System.Globalization.CultureInfo.GetCultureInfo("vi-VN"), "{0:C0}", (int)data.Rows[0]["Gia"]); lbMoTa.Text = (String)data.Rows[0]["MoTa"]; lbKichCo.Text = string.Format("{0:d}", data.Rows[0]["KichCo"]); lbKieuDang.Text = (String)data.Rows[0]["KieuDang"]; lbHoaTiet.Text = (String)data.Rows[0]["Hoatiet"]; //txtGia.Text = string.Format("{0:d}", (int)data.Rows[0]["Gia"]); } } else { Response.Redirect("trangchu.aspx"); }
Giá:
Mô tả:

Kích Cỡ:            Họa Tiết:
Kiểu Dáng:
Form:
.tbl-detail, .tbl-detail * { border: none; }