Copied to clipboard

Flag this post as spam?

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

  • Ravi Motha 289 posts 499 karma points MVP 5x c-trib
    Jun 05, 2015 @ 11:59
    Ravi Motha

    passing correct object to partial

    I have an umbracoViewPage

    This gets me Jerry.sliderValue which happens to be an IEnumerable

    I then want to pass it to a partial

    @Html.Partial(viewpath, Jerry.SliderValue)

    but that gives me a The model item passed into the dictionary is of type 'Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedContent', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[XXX.Web.Models.Cms.Content.Slide]'

    Help me i'm missing something simple ..

  • Stephen Roberts 47 posts 516 karma points c-trib
    Jun 05, 2015 @ 12:17
    Stephen Roberts

    What does the @model decloration on your Partial look like?

    also, you seem to be interchanging Jerry.sliderValue and Jerry.SliderValue

Please Sign in or register to post replies

Write your reply to: