//総件数を取得します。(ページング用) public int GetCount(int startRowIndex, int maximumRows) { string filter = GetFilterString(); CustomerDao dao = new CustomerDao(); int counts = dao.GetRecordCounts(filter); Session["Customer.Count"] = counts.ToString(); return counts; }
//会員情報を取得します。(ページング用) public DataSet GetCustomer(int startRowIndex, int maximumRows) { string Filter = GetFilterString(); CustomerDao dao = new CustomerDao(); DataSet ds = new DataSet(); ds.Tables.Add(dao.Select(startRowIndex + 1, startRowIndex + 1 + maximumRows, GetFilterString(), "ID asc")); return ds; }