Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
is working on a reply...
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.
Continue discussion
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
is working on a reply...
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.