Ejemplo n.º 1
0
 private void LoadProperty(int scid)
 {
     ThuocTinh tt = new ThuocTinh();
     DataSet ds = tt.SelectByNhomSanPhamID(scid);
     foreach (DataRow dr in ds.Tables[0].Rows)
     {
         wucProperty wucThuocTinh = (wucProperty) Page.LoadControl("wucProperty.ascx");
         wucThuocTinh.PropertyName = dr["TenThuocTinh"].ToString();
         wucThuocTinh.PropertyID = int.Parse(dr["ThuocTinhId"].ToString());
         pnlThuocTinh.Controls.Add(wucThuocTinh);
     }
 }