Sunday, 13 March 2022

Make Ajax call in Jquery, Asp.net MVC

  $.ajax({
        type: "POST",
        dataType: "json",
        data: {},
        url: ORDER_E.GetAllActiveAccounts,
        success: function (data) {          
            if (data.success) {
                console.log(data);              
            }
        },
        statusCode: {
            403: function () { alert("Access denied"); }, 20: function (res) { HTI.ShowInvalidCharError(res) }
        }
    });

No comments:

Post a Comment

Search This Blog

Creating your first "Alexa" Skill

Index What is Alexa What is Alexa Skill? Why is it required when Alexa already equipped with voice assistant? Dev...