Ejemplo n.º 1
0
        private double TotalRow()
        {
            ExamScheduleBiz biz = new ExamScheduleBiz();
            var             res = biz.GetExamLicenseByCriteria(txtTestingNo.Text, txtDateExam.Text, 0, 0, true).DataResponse;

            return(double.Parse(res.Tables[0].Rows[0][0].ToString()));
        }
Ejemplo n.º 2
0
        private void BindGrid()
        {
            TotalRows = TotalRow();
            ExamScheduleBiz biz = new ExamScheduleBiz();

            txtNumberGvSearch.Text = (txtTotalPage.Text == LastPage().ToString() ? txtNumberGvSearch.Text : "1");
            int page = int.Parse(txtNumberGvSearch.Text);

            gvCandidateDelay.DataSource = biz.GetExamLicenseByCriteria(txtTestingNo.Text, txtDateExam.Text, page, rowsPerPage(), false).DataResponse;
            gvCandidateDelay.DataBind();
            SetTextTotlaRows();
        }