title: How to pass query string with ActionLink?
body: <p><strong>Hi,</strong></p>
  
  <p>I am using ASP.NET MVC 3 and I need to generate a URL like this : <code>MyURL.se/?CS.C2=113</code></p>
  
  <p>I have tried this : </p>
  
  <pre><code>&lt;%= Html.ActionLink(subItem.Name, "List", "Ad", new { CS.C2=subItem.Id}, null) %&gt;
  </code></pre>
  
  <p>But this will throw a : <strong>CS0746: Invalid anonymous type member declarator. Anonymous type members must be declared with a member assignment, simple name or member access.</strong></p>
  
  <p>CS.C2 is part of the viewClass that the action needs.</p>
  
  <p>So how do I generate a proper URL for this link?</p>
  
  <p><strong>Edit :</strong> </p>
  
  <pre><code>public ActionResult List(AdList data)
  {
      //Fill data
      return View(data);
  }
  </code></pre>
  
  <p>I have tried this : <a href="https://stackoverflow.com/a/10011614/1490727">https://stackoverflow.com/a/10011614/1490727</a> but it throws : </p>
  
  <p><em>No parameterless constructor defined for this object.
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  Exception Details: System.MissingMethodException: No parameterless constructor defined for this object.</em></p>