Copied to clipboard

Flag this post as spam?

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


  • Jan Hansen 7 posts 27 karma points
    May 08, 2015 @ 15:18
    Jan Hansen
    0

    How to pass parameters to a partial view?

    So, I have multiple places where I pick "Customer" objects, and I'd like to do something like this in a template:

    var customers = CurrentPage.CustomerItems;

    Html.RenderPartial("customerListing", customers);

    How do I get hold of the (typed) customers list in the partial view?

    Best regards

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft