Answers for "call a mvc action from jquery"

0

call a mvc action from jquery

$.ajax({
    // edit to add steve's suggestion.
    //url: "/ControllerName/ActionName",
    url: '<%= Url.Action("ActionName", "ControllerName") %>',
    success: function(data) {
         // parse your data here
         alert(data);
    }
});
Posted by: Guest on May-27-2021

Code answers related to "call a mvc action from jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language