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
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
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
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)
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
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.