最佳答案
Could anyone please tell how to pass dynamic values using Url.action().
Something Like,
var firstname="abc";
var username = "abcd";
location.href = '@Html.Raw(@Url.Action("Display", "Customer", new { uname = firstname ,name = username}))';
firstname, username is not getting reffered inside the Url.action() method.
How to pass these dynamic values using Url.action()?