コード例 #1
0
 public void gvNSXBindData()
 {
     bllNSX = new NhaSanXuatBLL();
     dtNSX = new DataTable();
     dtNSX = bllNSX.getNhaSanXuat();
     gvNSX.DataSource = dtNSX;
     gvNSX.DataBind();
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         bllNhaSanXuat = new NhaSanXuatBLL();
         dataTable = bllNhaSanXuat.getNhaSanXuat();
         TenSX.DataTextField = "TenSX";
         TenSX.DataValueField = "MaSX";
         TenSX.DataSource = dataTable;
         TenSX.DataBind();
     }
 }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dtNhaSanXuat;

            bllNhaSanXuat = new NhaSanXuatBLL();
            dtNhaSanXuat = bllNhaSanXuat.getNhaSanXuat();
            TenSX.DataTextField = "TenSX";
            TenSX.DataValueField = "MaSX";
            TenSX.DataSource = dtNhaSanXuat;
            TenSX.DataBind();

            gvSanPhamBindData();
        }