Copied to clipboard

Flag this post as spam?

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


  • Peter Stokes 5 posts 25 karma points
    May 07, 2015 @ 14:59
    Peter Stokes
    0

    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.

    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

    Thanks

  • Peter Stokes 5 posts 25 karma points
    May 11, 2015 @ 21:51
    Peter Stokes
    0

    bump

Please Sign in or register to post replies

Write your reply to:

Draft