title: Passing dynamic javascript values using Url.action()
body: <p>Could anyone please tell how to pass dynamic values using Url.action().</p>
  
  <p>Something Like,</p>
  
  <pre><code>var firstname="abc";
  var username = "abcd";
  location.href = '@Html.Raw(@Url.Action("Display", "Customer", new { uname = firstname ,name = username}))';
  </code></pre>
  
  <p>firstname, username is not getting reffered inside the Url.action() method.</p>
  
  <p>How to pass these dynamic values using Url.action()?</p>