title: Display FormCollection with ASP.NET MVC
body: <p>I have a form using Html.BeginForm() on a view. I have in the controller an ActionResult to handle the post. What I need is to just kick back the results to a view. I can kick off the new view, but I don't know how to pass the data to it and once there I don't know how to display it. Here's what I have in the ActionResult.</p>
  
  <pre><code>[HttpPost]
          public ActionResult Index(FormCollection collection)
          {
  
  
              ViewBag.Title = "Confirm your order";
              return View("OrderConfirmation", collection);
          }
  </code></pre>
  
  <p>If I just do a return View("OrderConfirmation"); it will go to the view so I know I got that working. I just don't know how to pass the data. Right now I have it strongly typed to the same model the form was which causes errors because this FormCollection is not the same obviously. If I remove the strongly typed line the above works, but I have no idea how to loop through the collection at that point.</p>
  
  <p>Thanks for the help.</p>