A suggestion for paging

Dec 27, 2013 at 10:35 AM
Edited Dec 27, 2013 at 10:36 AM
Hi firedancer,

As when I tried to generate DAC using LASG and I did not specify any filter criteria, the method generated is as below:-

Image

I was wondering instead of having to specify maximum rows and startIndex ourselves, should having a "currentPage" like the rest of the method generated in DAC that required paging.

That would help out to ease the trouble to calculate our StartRowIndex.

Just a two cents.

Thanks and Cheers.

Big Fan
Dec 27, 2013 at 11:35 AM
Hi,

You appear to be using the "Select (Custom Page & Sort)" method type. This is a new type added in preparation for supporting ASP.NET Web Forms Model Binding. You can see a sample implementation of Model Binding in http://layersample.codeplex.com. Model Binding offers a more advance method of data binding.

For traditional method that uses currentPage, please use "Select (Paging & Sorting)" instead.

Hugs,
Serena