title: Asp.Net MVC ActionLink
body: <p>Can anyone explain why the following happens? And how to resolve, Visual Studio 2010 and MVC2</p>
  
  <pre><code>&lt;%= Html.ActionLink("Add New Option", "AddOption", "Product", new { @class = "lighbox" }, null)%&gt;
  </code></pre>
  
  <p>Results in</p>
  
  <blockquote>
    <p>/Product/AddOption?class=lightbox</p>
  </blockquote>
  
  <pre><code>&lt;%= Html.ActionLink("Add New Option", "AddOption", "Product", new { @class = "lighbox" })%&gt;
  </code></pre>
  
  <p>Results in</p>
  
  <blockquote>
    <p>/Product/AddOption?Length=7</p>
  </blockquote>
  
  <p>Thanks</p>