i was looking how to implement my wizard in asp.net mvc 2 without using TempData or session like in this example: http://www.highoncoding.com/Articles/652_Creating_Wizard_in_ASP_NET_MVC_Part_2.aspx?
Asked
Active
Viewed 281 times
0
-
Try this: http://stackoverflow.com/a/12514445/494064 – Darroll Sep 20 '12 at 14:13
2 Answers
2
You could use the Html.Serialize helper from MVC Futures.

Darin Dimitrov
- 1,023,142
- 271
- 3,287
- 2,928
-
-
1@user603007, this helper doesn't use session. You use the `Html.Serialize` helper inside a form by passing it a model instance. It serializes it using a hidden field and when the form is submitted it will send the serialized value to the corresponding action. On this action you would use action arguments as normally, the only difference is that you would decorate them with the `[Deserialize]` attribute and you will get those instances back. The only requirement is that those model classes are decorated with the `[Serializable]` attribute. It works the same as ViewState in classic ASP.NET. – Darin Dimitrov Mar 12 '11 at 08:13
0
You could move from screen to screen using GET method and store collected data in URL as parameters.

Alexander Prokofyev
- 33,874
- 33
- 95
- 118
-
-
I believe it isn't less secure than one described in the article. – Alexander Prokofyev Mar 11 '11 at 07:24