Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a view(content), and i want pass data from this view to controller, i was used $.ajax but it not working.
My controller.
public class SignUpController : UmbracoApiController { [HttpPost] public string UpLoad(string name) { return "Hello" + name; } }
My view
$('#upload').click(function () { $.ajax({ url: "umbraco/api/SignUp/UpLoad", data: { name: "Trung" }, type: "Post", datatype: "Json", success: function () { alert(data); } }); });
I hope everyone will be helping solve this. Thanks. My english not good :D
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Pass data from view to controller using Json
I have a view(content), and i want pass data from this view to controller, i was used $.ajax but it not working.
My controller.
My view
I hope everyone will be helping solve this. Thanks. My english not good :D
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.