title: Pass a jquery variable to @Url.Action MVC3
body: <p>How can I pass my client side variable to controller using Url.Action.</p>
  
  <p>I am trying to do like this, but it's not working</p>
  
  <pre><code>location.href = '@Url.Action("printtopdf","batch",new {allocationId=unSelected}))';
  </code></pre>
  
  <p>In the above line 'unSelected' is a client side variable and comma separated values.</p>