title: Partial view on button click
body: <p>I have Controller: </p>
  
  <pre><code>public ActionResult Index(string Activites)
  {
      var item2 = (from o in frh.Dates orderby o.Date1 select o.Date1).ToArray();
  
      int lenght = item2.Count();
  
      string[] data = new string[lenght];
      DateTime[] data3 = new DateTime[lenght];
      object[] data2 = new object[lenght];
      double?[] last = new double?[lenght];
  
      // liste des mois -- string 
      for (int i = 0; i &lt; lenght; i++)
      {
          data[i] = item2[i].ToString("dd/MM/yyyy");
  
          //if (data[i].Equals(Dates))
          //{ break; }
          //if (data[i] == Dates) break;
      }
  
      //list des mois -- datetime
      for ( var l = 0; l &lt; lenght; l++)
      {
          data3[l] = item2[l];
          //  if (data3[l].Equals(Dates)) break;
          // if (data3[k].ToString("dd/MM/yyyy") == Dates) break;
      }
  
      //calcul de productivité 
      // changement ???
      var items = (from x in frh.productivites
                   where x.Activité == Activites
                   select new { x.delta_, x.tempstot_, x.DateID });
  
  
      var j = 0;
  
      foreach (var a in data3)
      {
          var sumd = items.Where(c =&gt; c.DateID == a).Select(c =&gt; c.delta_).Sum();
          var sumt = items.Where(c =&gt; c.DateID == a).Select(c =&gt; c.tempstot_).Sum();
          var prod = sumd / sumt;
          last[j] = prod;
          j++;
          sumd = 0;
          sumt = 0;
          prod = 0;
      }
  
      data2 = last.Cast&lt;object&gt;().ToArray();
  
      DotNet.Highcharts.Highcharts chart = new DotNet.Highcharts.Highcharts("chart")
      .SetXAxis(new XAxis
      {
          Categories = data
      })
      .SetYAxis(new YAxis
      {
          Title = new YAxisTitle { Text = "Productivité " },
          PlotLines = new[]
          {
              new YAxisPlotLines
              {
                  Value = 0,
                  Width = 1,
                  Color = ColorTranslator.FromHtml("#808080")
              }
          }
      })
      .SetTitle(new Title
      {
          Text = Activites,
          X = -20
      })
      .SetSubtitle(new Subtitle
      {
          Text = "Décembre 2012 - Juin 2013",
          X = -20
      })
      .SetSeries(new Series
      {
          Name = "ODR", 
          Data = new Data(data2)
      });
  
      return PartialView(chart);
  }
  </code></pre>
  
  <p>and Partial View :</p>
  
  <pre><code>@model DotNet.Highcharts.Highcharts
  @(Model)   
  
  @section Scripts {
      @Scripts.Render("~/bundles/HighChart")
  }
  </code></pre>
  
  <p>and view :</p>
  
  <pre><code>@{
      ViewBag.Title = "Index";
  }
  
  &lt;html&gt;
      &lt;body&gt;
          @using (Html.BeginForm("Index", "Graphe"))
          {
          &lt;table style="width: 100%;" border="1"&gt;
              &lt;tbody&gt;
                  &lt;tr aria-atomic="False" class="alt"&gt;
                      &lt;td&gt;date début :&lt;/td&gt;
                      &lt;td&gt;&lt;input value="01/12/2012" type="text"  disabled/&gt;&lt;/td&gt;
                      &lt;td style="width: 20%; position:absolute "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;date fin :&lt;/td&gt;
                      &lt;td&gt;&lt;select id="Dates" name="Dates"  &gt;&lt;option&gt;Selectionnez --&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input id="date" type="checkbox" /&gt; &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr class="alt"&gt;
                      &lt;td&gt;Activité : &lt;/td&gt;
                      &lt;td&gt;&lt;select id="Activites" name="Activites"  &gt;&lt;option&gt;Selectionnez --&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input id="activite" type="checkbox" /&gt; &lt;/td&gt;    
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;Responsable:&lt;/td&gt;
                      &lt;td&gt;&lt;select id="Responsables" name="Responsables"&gt;
                          &lt;option&gt;Selectionnez --&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input id="Responsable" type="checkbox" /&gt; &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr style="height : 30%"&gt;
                      &lt;td style="width: 20%"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td style="width: 20%; position:absolute "&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type="submit" value="Afficher" id="ButtonSubmit"/&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input class="button" id="ButtonReset" type="button" value="Annuler"  /&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;  
          }
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What I want is to show partial View on button click ; I need also to pass parameters (selected values) from view to controller for filtering the collection rendered in the partial view, How could I do that ? </p>