call a mvc action from jquery

Solutions on MaxInterview for call a mvc action from jquery by the best coders in the world

showing results for - "call a mvc action from jquery"
Lark
19 Oct 2016
1$.ajax({
2    // edit to add steve's suggestion.
3    //url: "/ControllerName/ActionName",
4    url: '<%= Url.Action("ActionName", "ControllerName") %>',
5    success: function(data) {
6         // parse your data here
7         alert(data);
8    }
9});