I am struggling with an issue I cannot resolve regarding Ajax.ActionLink.
I was hoping to use this to render a partialview in a popup. I am fairly new to Umbraco and MVC in general so if there is a better way of doing this then please let me know.
The ajax call successfully calls my function inside my surfacecontroller but when I try to create my model which inherits from RenderModel it fails on the constructor.
public MyModel() : this(new UmbracoHelper(UmbracoContext.Current).TypedContent(UmbracoContext.Current.PageId)) { }
It is failing because PageId is null.
Could someone please explain how I can resolve this
Ajax.ActionLink and RenderModel
Hi,
I am struggling with an issue I cannot resolve regarding Ajax.ActionLink.
I was hoping to use this to render a partialview in a popup. I am fairly new to Umbraco and MVC in general so if there is a better way of doing this then please let me know.
The ajax call successfully calls my function inside my surfacecontroller but when I try to create my model which inherits from RenderModel it fails on the constructor.
It is failing because PageId is null.
Could someone please explain how I can resolve this
Thanks
bump
is working on a reply...