开发者

mvc3 wizard like pages saving state to a database

开发者 https://www.devze.com 2023-03-14 22:54 出处:网络
With using MVC3, I am hoping for a decent wizard multistep approach.I need to have previous, next , save buttons.Both Next and Save will be saving data to the database (more of holding staging table),

With using MVC3, I am hoping for a decent wizard multistep approach. I need to have previous, next , save buttons. Both Next and Save will be saving data to the database (more of holding staging table), yet I don't want to make the navigation a nightmare to code and manage. I use to do this stuff with webforms, b开发者_运维百科ut I am hoping for a good solution with mvc3. I really don't want sessions or cookies. I did notice in the Apress book "Pro ASP.NET MVC 2" by Steven Sanderson. On page 478 he says "There are unlimited ways in which you could accomplish this....." (regarding a wizard multistep form).

He mentions collecting and preserving data with Microsoft MVC Futures dll download, and then serializing hidden input tags.

I wanted to hear back from some experts out there on this approach vs. other approaches/solutions.

Thanks in advance.


hope this post will give you some start


You can have a look of the simple component MVCWizard.Wizard available on NuGet. The WizardController allows you to create a wizard using partial view. There is also the AutoWizardController that renders the entire wizard in a single view. All these components operate with the session to store the model state. You can find example of MVCWizard on NuGet.

0

精彩评论

暂无评论...
验证码 换一张
取 消