I have one problem with jQuery.post() syntax.
I have the controller ExampleController.cs, with an action:
public ActionResult TestPost(Guid fileId) { //do something }
and the view Example.cshtml, and here I attempt to load this action:
function foo(fileGuid) {
$.post("Example/TestPost?fileId=" + fileGuid, function () {
alert("success");
});
}
But there's no alert, I think something wrong with this syntax. Can anyone help me out. Thanks.