Copied to clipboard

Flag this post as spam?

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


  • pat 124 posts 346 karma points
    Nov 01, 2017 @ 11:40
    pat
    0

    render a partial view without any Model using macro

    I have a partial view with out using any custom model just a list and a script to test some jquery code I just need to insert this in a single page so I have created a partial view Macro to render it in a page RTE.

        @inherits Umbraco.Web.Macros.PartialViewMacroPage
    @{Html.Partial("/Views/Partials/teststeps.cshtml");}
    

    Then i have insert this macro in RTE and published , I get below error

    Cannot bind source type Umbraco.Web.Models.PartialViewMacroModel to model type Umbraco.Web.Models.RenderModel.

    I don't use any Model so how do i sort this please

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Nov 01, 2017 @ 12:59
    Alex Skrypnyk
    0

    Hi Pat

    Can you show Partial view code?

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft