How to redirect to an action in ASP.Net MVC, using JQuery?
I'm trying to do this:
$("#Filtro").change(function () {
@Url.Action("Answer");
});
How to redirect to an action in ASP.Net MVC, using JQuery?
I'm trying to do this:
$("#Filtro").change(function () {
@Url.Action("Answer");
});
There are a few examples here on the site , and the command is window.location. href by passing the value of the example address:
$("#Filtro").change(function () {
window.location.href = '@Url.Action("Answer")';
});
to be redirected to the page you want.
References