title: Post a form with multiple partial views
body: <p>I'm currently trying to post a form composed of two strongly typed views.  This question is similar but it doesn't have an answer:</p>
  
  <p><a href="https://stackoverflow.com/questions/8592136/mvc-3-razor-form-post-w-multiple-strongly-typed-partial-views-not-binding">MVC 3 Razor Form Post w/ Multiple Strongly Typed Partial Views Not Binding</a></p>
  
  <p>When I submit form the model submitted to the controller is always null.   I've spent a couple of  hours trying to get this to work.  This seems like it should be simple.  Am I missing something here? I don't need to do ajax just need to be able to post to the controller and render a new page.  </p>
  
  <p>Thanks</p>
  
  <p>Here's my view code:</p>
  
  <pre><code>&lt;div&gt;
      @using (Html.BeginForm("TransactionReport", "Reports", FormMethod.Post, new {id="report_request"}))
      {
          ViewContext.FormContext.ValidationSummaryId = "valSumId";
          @Html.ValidationSummary(false, "Please fix these error(s) and try again.", new Dictionary&lt;string, object&gt; { { "id", "valSumId" } });
          @Html.Partial("_ReportOptions", Model.ReportOptions);
          @Html.Partial("_TransactionSearchFields", new ViewDataDictionary(viewData) { Model = Model.SearchCriteria });
      }
  </code></pre>
  
  <p>Here's the code in the controller: </p>
  
  <pre><code>[AcceptVerbs(HttpVerbs.Post)]
  public ActionResult TransactionReport(TransactionReportRequest reportRequest)
  {
      var reportInfo = new List&lt;TransactionReportItem&gt;();
  
      if (ModelState.IsValid)
      {
          var reportData = _reportDataService.GetReportData(Search.MapToDomainSearchCriteria(reportRequest.SearchCriteria));
          if (reportData!=null)
          {
              reportInfo = reportData.ToList();
          }
          return View(reportInfo);
      }
      return View(reportInfo);
  }
  </code></pre>
  
  <p></p>
  
  <p>The partial views themselves are pretty irrelevant since all they are doing is biding and displaying their models.  </p>