ajamaeen/asp.net-mvc-wizard

How to store form data after HttpPost

Closed this issue · 4 comments

First off great blog post and tutorial. I followed this and implemented it in a bit a different way. But I was wondering how do you store your state of the data for each step?

In the examples on the HttpGet methods you always create a new instance of the ViewModel for the step. Do you have a way that on NextCommand the data gets stored along side with the wizard state and then gets loaded again if the user returns to that step in the wizard?

Thanks ,
On OnExecute action for command i do save the navigator state Navigator.SaveWizardState();

WizardState : contains all wizard steps with active steps Id , when user navigate i do serialize the wizard state to JSON and save it in database for logged in user using NavigatorPersistenceService
then load the state each time page loaded .

Check the NavigatorPersistenceService

Wizard State

thanks for getting back to me

I see that...but that is just the WizardState and not the data that the user input? or can I add that somehow?

ah i see...
thanks for clarifying...