private void BindData() { int roundscan = Convert.ToInt32(DropDownList1.SelectedValue); string DateTtime = DatePickerControl.Text; DataSet ds = new UserScanResultDAO().GetUserScanResultByIDMember(txtfullname.Text.Trim(), roundscan, DateTtime, PagingControl1.CurrentPageIndex, PagingControl1.PageSize, this.SortColumn, this.SortOrder); PagingControl1.RecordCount = (int)ds.Tables[1].Rows[0][0]; gvMember.DataSource = ds.Tables[0]; gvMember.DataBind(); //DatePickerControl.Text = ""; txtfullname.Text = ""; }
private void BindData() { int roundscan = Convert.ToInt32(DropDownList1.SelectedValue); string DateTtime = DatePickerControl.Text; int memberuserid = Convert.ToInt32(ViewState["member_user_id"].ToString()); DataSet ds = new UserScanResultDAO().GetUserScanResultByIDDatetime(memberuserid, roundscan, DateTtime, PagingControl1.CurrentPageIndex, PagingControl1.PageSize, this.SortColumn, this.SortOrder); PagingControl1.RecordCount = (int)ds.Tables[1].Rows[0][0]; gvMember.DataSource = ds.Tables[0]; gvMember.DataBind(); DatePickerControl.Text = ""; }