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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...