예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataCenterBiz bizCenter = new DataCenterBiz();
         ddlType.DataSource = bizCenter.GetLicenseType("--เลือกประเภทใบอนุญาต--").DataResponse;
         ddlType.DataBind();
     }
 }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataCenterBiz bizCenter = new DataCenterBiz();
         ddlType.DataSource = bizCenter.GetLicenseType("--เลือกประเภทใบอนุญาต--").DataResponse;
         ddlType.DataBind();
         var res = biz.GetSubjectGroupSearch("", txtPage.Text.ToInt(), txtCountRecord.Text.ToInt());
         gvSearch.DataSource = res.DataResponse;
         gvSearch.DataBind();
         lblCountRecord.Text = res.CountRecord.ToString();
         lblCountPage.Text   = res.CountPage.ToString();
     }
 }