0

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?

user603007
  • 11,416
  • 39
  • 104
  • 168

2 Answers2

2

You could use the Html.Serialize helper from MVC Futures.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
  • do you have a code sample for this, i dont want to use session btw – user603007 Mar 12 '11 at 07:39
  • 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