rcdmk / aspJSON

A fast classic ASP JSON parser and encoder for easy JSON manipulation to work with the new JavaScript MV* libraries and frameworks.
MIT License
204 stars 89 forks source link

Pagination #13

Closed Lamenza closed 8 years ago

Lamenza commented 8 years ago

Good afternoon!

Please, you can use this code in a recordset prepared for paging?

I tried to find a way for it but could not.

I thank you

rcdmk commented 8 years ago

Hi.

All you have to do is set the AbsolutePage property of the recordset before calling the JSONobject's LoadRecordset method.

rs.AbsolutePage = 2 ' here we set the desired page
set jsonArr = json.LoadRecordset(rs) ' we load the recordset page into a JSONArray object
rcdmk commented 8 years ago

Have this worked for you? If not, please, provide some feedback and I can help if there is anything broken in the class or your code.