P
Peter Row
Hi,
I am converting an existing VB6 webclass app to VB.NET ADO.NET and I'm
having a problem coming up with solution
for paging the records returned from my stored procedures.
As I understand it from the help I can use a dataadapters fill() method to
specify a page size and tha page I want.
However this will only return 1 page worth of data. Currently in my web
pages I provide next/back links and a
<SELECT> list of page numbers. If I use the dataadapters fill() method to do
the paging how will my code be able
to workout how many pages there are all together?
I looked at:
http://msdn.microsoft.com/library/d...pguide/html/cpconpagingthroughqueryresult.asp
.... but that doesn't seem to fit what I want to do.
In ADO it was simple now it seems to be a lot harder. I realise that ADO.NET
is built for performance and so doesn't
come with as many built in features but some examples of ADO to ADO.NET in
the area of paging would of been handy.
Anybody done the same leap from ADO --> ADO.NET and done paging?
Regards,
Peter
I am converting an existing VB6 webclass app to VB.NET ADO.NET and I'm
having a problem coming up with solution
for paging the records returned from my stored procedures.
As I understand it from the help I can use a dataadapters fill() method to
specify a page size and tha page I want.
However this will only return 1 page worth of data. Currently in my web
pages I provide next/back links and a
<SELECT> list of page numbers. If I use the dataadapters fill() method to do
the paging how will my code be able
to workout how many pages there are all together?
I looked at:
http://msdn.microsoft.com/library/d...pguide/html/cpconpagingthroughqueryresult.asp
.... but that doesn't seem to fit what I want to do.
In ADO it was simple now it seems to be a lot harder. I realise that ADO.NET
is built for performance and so doesn't
come with as many built in features but some examples of ADO to ADO.NET in
the area of paging would of been handy.
Anybody done the same leap from ADO --> ADO.NET and done paging?
Regards,
Peter