Here is my controller Action method
public ActionResult ChangeStateId(int userId,int stateId)
{
return RedirectToAction("Index")
}
and in my anchor tag of View, i want to redirect to above action method with parameter values like this
<a href="'@Url.Action("ChangeStateId","User")?userId='+$('#hidID').val()+ '&stateId=' +$('#hidStateId'.val()")></a>;
but it is not working for me.