title: ASP.NET MVC 4 form post to url
body: <p>Only just started using MVC 4 &amp; I am not sure how to do the following.</p>
  
  <p>I have a page that displays a list of blog articles '/blog', this page also contains a select list with a list of dates, selecting a date should auto post the form to a URL like '/blog/date/20-05-2015' this URL routes to a ActionResult in a controller, which returns a list of blog articles from that date. </p>
  
  <p>I dont know how to get my form to automatically post to a URL like '/blog/date/20-05-2015' </p>
  
  <p>ROUTE:</p>
  
  <pre><code>routes.MapRoute(
              "blogsByDates",
              "blog/date/{date}",
              new { controller = "Blog", action = "IndexByDate" }
              );
  </code></pre>
  
  <p>CONTROLLER</p>
  
  <pre><code>public ActionResult IndexByDate(DateTime date)
      {
          var query = from c in db.Blogs
                      where c.PublishDate &gt;= date
                      select c;
  
          return View("Index", query.ToList());
      }
  </code></pre>
  
  <p>VIEW (PARTIAL)</p>
  
  <pre><code>@using (Html.BeginForm())
    { 
  &lt;select name="ddlMonth" id="ddlMonth"&gt;
  &lt;option value="01-06-2012"&gt;June 2012&lt;/option&gt;
  &lt;option value="01-05-2012"&gt;May 2012&lt;/option&gt; 
  &lt;/select&gt; 
  }
  </code></pre>