The following should complete the following task:
var scope = 'Test'; var scopeId = [1, 2, 3]; $.ajax({ url: '@Url.Action("Refresh", "Calendar")', type: 'POST', data: { scope: scope, scopeId: scopeId }, traditional: true, success: function(result) {
and if you are using ASP.NET MVC 3, you can also send the request as a JSON object:
$.ajax({ url: '@Url.Action("Refresh", "Calendar")', type: 'POST', contentType: 'application/json; charset=utf-8', data: JSON.stringify({ scope: scope, scopeId: scopeId }), success: function(result) {
source share