theStig
theStig

Reputation: 610

Best way to implement paging for partial views in mvc

What would be the way to implement a paging system (Previous, Next) for partial views? My first thought was to implement separate partial views that would contain the inputs to decide whether the page can go previous, next, or finish. From there the controller would decide where to route what from the input.

What would be the best practice way of implementing such a scenario?

Upvotes: 3

Views: 1552

Answers (1)

Pablo Romeo
Pablo Romeo

Reputation: 11396

Here's an interesting implementation of a wizard on MVC: http://afana.me/post/create-wizard-in-aspnet-mvc-3.aspx

It doesn't use separate partials for each "page", but you might still like the implementation.

Upvotes: 3

Related Questions