Copied to clipboard

Flag this post as spam?

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


  • Craig O'Mahony 363 posts 917 karma points
    Apr 16, 2015 @ 18:14
    Craig O'Mahony
    0

    Render MacroPartial in Partial View

    Hi all,

    I've created a controller that creates a list of some content from the Umbraco back end and passes this list into a partial view.

    On the view itself itself I loop through the content and build and display some HTML. So far so good.

    But I'd like to be able to do is put a reference to a MacroPartial cshtml that.

    Here is what I've got in my view (minus the code loop and html and all that) 

    @model IEnumerable<STEP_Umbraco.Models.CourseViewModel>
    @{
        Html.RenderPartial("Show Footer Logo");
    }

    The Html.RenderPartial line is where I'm trying to inject my MacroPartial but I'm getting the error of:

    and I'm not sure how to get around it.

    Could anyone assist please?

    Thanks,

    Craig

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies