title: Model binding comma separated query string parameter
body: <p>How can I bind query string parameter that is comma separated value</p>
  
  <pre><code>http://localhost/Action?ids=4783,5063,5305
  </code></pre>
  
  <p>to a controller action expecting a list?</p>
  
  <pre><code>public ActionResult Action(List&lt;long&gt; ids)
  {
      return View();
  }
  </code></pre>
  
  <p><strong>Note!</strong> <code>ids</code> in the controller action must a list (or something IEnumerable based), so <code>string ids</code> is not accepted as an answer because these parameters are passed to many actions and parsing string to an array would add unwanted noise.</p>