title: ASP.NET MVC 3 - Filtering list with multiple fields
body: <p>I have a list of Assets displayed in a HTML table, the data model for these is quite complicated; they each have a Manufacturer/Model pair, Location and Status just to name a few.</p>
  
  <p>To filter by one field, it is simple something along the lines of</p>
  
  <pre><code>@Html.ActionLink(item.LocationName, "Index",
  new { LocationID = item.LocationID.ToString() }, null)
  </code></pre>
  
  <p>This will produce a URL looking like </p>
  
  <blockquote>
    <p>hxxp://Localhost/Assets/Index?LocationID=3</p>
  </blockquote>
  
  <p>The problem arises when trying to filter by both multiple different fields and multiple similar fields, I cannot seem to find a way to produce URLs like</p>
  
  <blockquote>
    <p>hxxp://Localhost/Assets/Index?LocationID=3,4</p>
  </blockquote>
  
  <p>or </p>
  
  <blockquote>
    <p>hxxp://Localhost/Assets/Index?LocationID=3&amp;Status=Active</p>
  </blockquote>
  
  <p>I may just be trying to treat MVC like Webforms but I don't see any way of passing all these combinations of filtered fields back to my controller to produce a table that shows the data the end user wants to see.</p>