I am new to ASP.NET MVC, so this may have an obvious answer. Right now I have a form in my view with a lot of input controls, so I have an action that looks like this:
public ActionResult MyAction(string formItemOne, int? formItemTwo, etc...)
It has a dozen options, which is pretty ugly. I am trying to change it to this:
public ActionResult MyAction(FormCollection formItems)
and then analyze the elements dynamically. But when I go to FormCollection, form elements no longer "automatically" remember their values via postback. Why does a change in FormCollection change this behavior? Anything simple I can do to make it work automatically again?
Thanks for the help,
~ Justin