Create Wizard steps in MVC and Razor

Arun Rana picture Arun Rana · Jan 19, 2012 · Viewed 34.7k times · Source

I would like to build one MVC application to create the account of a user using more then one wizard steps. Do I need to go with one view page and hide or display a div by client side logic or do I need to create different view for each wizard (using partial views)?

What is the best option here? I need to maintain state data between wizard steps so the user can move back or next and on last step he or she can save it to the database.

Answer

Darin Dimitrov picture Darin Dimitrov · Jan 19, 2012

There are different possibilities. You could use a pure client side solution by showing/hiding sections or a full server side solution. It's up to you to decide which one is best for your particular scenario. Here's an example you might take a look at if you decide to go the server side approach.