Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GridChonDuAn_uc.DataSource = null;
         GridChonDuAn_uc.DataBind();
     }
     AjaxPro.Utility.RegisterTypeForAjax(typeof(ntsLibraryFunctions));
     AjaxPro.Utility.RegisterTypeForAjax(typeof(ProOnline.module.thongtinduan_b1), this.Page);
 }
Exemplo n.º 2
0
 protected void GridChonDuAn_uc_OnRebind(object sender, EventArgs e)
 {
     try
     {
         SqlFunction sqlFunc = new SqlFunction(HttpContext.Current.Session.GetConnectionString2());
         GridChonDuAn_uc.DataSource = sqlFunc.GetData("SELECT sttDuAnpr as sttDuAnpr_uc,maDuAn as maDuAn_uc,tenDuAn as tenDuAn_uc,tenChuDauTu_uc=(SELECT tenDonVi FROM tblDMDonVi WHERE maDonVipr=maDonVipr_chudautu),diaDiemXD as diaDiemXD_uc FROM dbo.tblDuAn WHERE tblDuAn.maDonVipr_sd=N'" + HttpContext.Current.Session.GetDonVi().maDonVi + "'");
         GridChonDuAn_uc.DataBind();
     }
     catch
     {
     }
 }