This question is locked. New answers and comments are not allowed.
Excuse my newby mvc ignorance, please, but I have a form that uses the combo box. I post to the controller and return to the view for the user to enter another record. The view now shows the previous combo box selection, and I'd rather it just showed the, default first value in the dropdown I guess is the best way to put it, because on the initial view no default value is actually set by me. How do I do this?
As an aside, I had the same problem with the Html.TextBox function showing the previous entry, but cleared those values from the model in the controller by using ModelState.Remove("controlname"). Is that the best way to do that? I tried to do that with the combobox but it didn't work.
This seems like an obviously easy thing to do, but I'm stumped, probably due to my inexperience in this environment. Help?
As an aside, I had the same problem with the Html.TextBox function showing the previous entry, but cleared those values from the model in the controller by using ModelState.Remove("controlname"). Is that the best way to do that? I tried to do that with the combobox but it didn't work.
This seems like an obviously easy thing to do, but I'm stumped, probably due to my inexperience in this environment. Help?