UmbracoContext.Current.PageId is null when using form get?
I changed from using @Html.BeginUmbracoForm with a GET to just form with a GET. The form works, but when I click submit, it throws and error in my model:
UmbracoContext.Current.PageId is null where PageId is null. I tried removing the inheritetance from RenderModel and SurfaceController and just using an MVC controller, but now in my ajax call, it returns the whole HTML document instead of the JSON object.
UmbracoContext.Current.PageId is null when using form get?
I changed from using
@Html.BeginUmbracoForm
with aGET
to justform
with aGET
. The form works, but when I click submit, it throws and error in my model:UmbracoContext.Current.PageId is null where PageId is null. I tried removing the inheritetance from
RenderModel
andSurfaceController
and just using an MVC controller, but now in my ajax call, it returns the whole HTML document instead of the JSON object.Here is my ajax call:
is working on a reply...