R – Implementing paging using MVP

asp.netmvppagingrepeater

How to implement paging in ASP.NET webforms when applying the MVP pattern? I'm wondering where to put the paging logic…in the view or in the presenter? Also a neet way to implement paging in ASP.NET is to use the PagedDataSource control… would it be correct to use that from a presenter or would we better of implementing some custom paging logic. The data is displayed in the view using a Repeater control.

Best Answer

I don't know exactly, what difference is there between mvp and mvc, so I think this post might be useful to you. I personally like the idea to create a hepler outside model or controller(presenter?). Also jquery paging mechanism is pretty straight forward. In presenter just add parameters for requested rows of data and return only those instead of whole table/grid/whatever.