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.
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
Anyone any ideas re: this?
Thanks
is working on a reply...