title: ASP.NET MVC 4 Partial View Post Method on a form
body: <p>I have a partial view that is called _GetForfaitDashBoard.cshtml
  This is the code</p>
  <pre><code>@model WebAppComp.Areas.Admin.Models.StatsForfaitDashBoard
  
  
  &lt;table class =&quot;table table-bordered&quot;&gt;
  &lt;tr&gt;
  &lt;th&gt;Nombre total de Forfaits&lt;/th&gt;
  &lt;th&gt;Moyenne des forfaits par Agence&lt;/th&gt;
  &lt;th&gt;Forfait Ayant le prix le plus haut&lt;/th&gt;
  &lt;th&gt;Forfait Ayant le prix le plus bas&lt;/th&gt;
  &lt;th&gt;Le forfait le plus visité&lt;/th&gt;
  &lt;th&gt;Le forfait le mieux noté par les membres&lt;/th&gt;
  &lt;th&gt;le forfait ayant le plus de réservations&lt;/th&gt;
  &lt;th&gt;le forfait le plus récent&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;@Model.CountForfaits&lt;/td&gt;
  &lt;td&gt;@Model.AverageCountForfaitPerAgence&lt;/td&gt;
  &lt;td&gt;@Html.ActionLink(&quot;Ici&quot;, &quot;GetById&quot;, &quot;Agence&quot;, new { numSiretAgence = Model.IdHighestPriceForfait }, null)&lt;/td&gt;
  &lt;td&gt;@Html.ActionLink(&quot;Ici&quot;, &quot;GetById&quot;, &quot;Agence&quot;, new { numSiretAgence = Model.IdLowestPriceForfait }, null)&lt;/td&gt;
  &lt;td&gt;@Html.ActionLink(&quot;Ici&quot;, &quot;GetById&quot;, &quot;Agence&quot;, new { numSiretAgence = Model.IdMostVisitedForfait }, null)&lt;/td&gt;
  &lt;td&gt;@Html.ActionLink(&quot;Ici&quot;, &quot;GetById&quot;, &quot;Agence&quot;, new { numSiretAgence = Model.IdBestRatedForfait }, null)&lt;/td&gt;
  &lt;td&gt;@Html.ActionLink(&quot;Ici&quot;, &quot;GetById&quot;, &quot;Agence&quot;, new { numSiretAgence = Model.IdMostBookedForfait}, null)&lt;/td&gt;
  &lt;td&gt;@Html.ActionLink(&quot;Ici&quot;, &quot;GetById&quot;, &quot;Agence&quot;, new { numSiretAgence = Model.IdMostRecentForfait}, null)&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;/table&gt;
  </code></pre>
  <p>It's a table in which I put statistics.
  What I want to do is to have these statistics loaded in a web page based on a <strong>Form</strong> , the form will contain a simple dropdownlist in which the user choses the type of statistics that he wants.
  Here is the code of the partial View Action :</p>
  <pre><code>[HttpPost]
          public PartialViewResult _GetForfaitDashBoard (TypeForfait typeForfait)
          {
              .....
          }
  </code></pre>
  <p>Now I don't know how to do to put all I said into action. Is putting a form in the base view that posts to the action of the Partial View will be a good approach? Or is there any other solutions to call a partial view based on a form?</p>