I have an action which I need to post forward onto another action if it meets certain conditions, but I am unable to preserve the form data when passing through to the next action.
The receiving action accepts a FormCollection, which the sending action
Currently, I am doing a return RedirectToAction("action","controller", form). And I can determine that the form variable has keys before it redirects (form.HasKeys() = true).
When the action is hit however, the FormCollection is empty (form.HasKeys() = false).
Any ideas? Is there a 'PostToAction' method that I am missing?
FYI: I am using ASP.NET MVC Beta. Many thanks!
Edit: For those who have this problem, please look into the PRG Pattern. This is the actual term of what I was looking to do which also enables pretty urls.