Skip to content

Instantly share code, notes, and snippets.

@jellebens
Created March 24, 2014 13:30
Show Gist options
  • Save jellebens/9740086 to your computer and use it in GitHub Desktop.
Save jellebens/9740086 to your computer and use it in GitHub Desktop.
$.ajax({
url: '@Url.Action("Tasks", "Inbox", new { area = string.Empty })',
data: { userId : '@MyPrincipal.Current.Id' },
cache: false,
type: "GET",
success: function (data) {
$("#numberOfTaskListItems").html(data);
},
dataType: "json"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment