Tuesday, 17 April 2018

Pass Multiple Parameters to jQuery ajax call

Pass Multiple Parameters to jQuery ajax call
Description:

In this example we explain that how to pass multiple parameter to jQuery ajax call in asp.net. or how to pass multiple parameter in Web Method in asp.net using jQuery. Or how to create web method with multiple parameter and calling it from jQuery ajax call in asp.net. or pass multiple parameters to Web Method in jQuery AJAX POST in asp.net. or how to send or pass multiple parameter in jQuery ajax call in asp.net.
jQuery:

      $.ajax({
            type: 'POST',
            url: 'Project.aspx/GetProjectdetail',
            contentType: 'application/json; charset=utf-8',
            data: { ProjectId: 1, projectNo: 'P001' },
            dataType: 'json',
            success: AjaxSucceeded,
            error: AjaxFailed
        });

WebMethod:

[WebMethod]
    public static string GetProjectdetail(int ProjectId, string projectNo)
    {
    }



0 comments:

Post a Comment