Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Manikandan 15 posts 96 karma points
    Feb 17, 2016 @ 14:07
    Manikandan
    0

    Ajax call to surface controller in umbraco7.3.5

    How to work with Ajax to call surface controller's method in Umbraco 7.3.5 ? Previously in Umbraco 7.2 i used like this:

    $.ajax({
    type: "POST",
    data: "{'searchString':'@searchString ','pageS':' @pageS ','pageSize':' @pageSize '}",
    url: "/umbraco/Surface/{controller Name}/{method Name}/",
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function (response) {
    }
    });

    But now(7.3.5) its showing path not found error to the controller's method . Thanks in Advance...

  • Rick Yim 1 post 72 karma points notactivated
    Feb 17, 2016 @ 18:16
    Rick Yim
    1

    I'm still using 7.2 so I can't test it but if it's a path problem maybe you can try using

    @Url.Action("actionName", "ControllerName")

    It will generate a fully qualified url to the action.

  • Manikandan 15 posts 96 karma points
    Feb 18, 2016 @ 09:49
    Manikandan
    0

    Thanks for your reply Rick... I did small mistake in dll reference thats why ajax call is not worked. my above code working properly in 7.3.5 too.

Please Sign in or register to post replies

Write your reply to:

Draft