Copied to clipboard

Flag this post as spam?

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


  • David Whiteford 14 posts 84 karma points
    Jul 14, 2016 @ 12:29
    David Whiteford
    0

    Ajax Post to Surface Controller that returns a PartialView

    Hi,

    I am AJAX posting to a custom surface controller which returns a PartialView (to replace an existing div in the page with the result of the PartialView). This works fine for a simple PartialView.

    However when the Partial View has some references to "Umbraco.TypedContent" (amongst other things) it throws an error:

    "The UmbracoHelper was constructed with an UmbracoContext and the current request is not a front-end request"

    Any ideas how to resolve this?

    The partial view that I am returning is used in multiple locations so I don't really want to create a copy and re-code it to avoid the UmbracoHelper.

    Thanks Dave

  • David Whiteford 14 posts 84 karma points
    Jul 23, 2016 @ 14:31
    David Whiteford
    0

    Anyone any ideas re: this?

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft