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
Is there some way to render a partial view inside a MacroEngines scripting razor file?
Hi Amigo,
Did you try like that :
@Html.Partial("nameOfPartial", Model) @Html.Partial("nameOfPartial")
Thanks
Hi Alex,
@Html.Partial("nameOfPartial") works fine when i try in my template.
But i simply cant get it to work inside my cshtml macro script.
What do i need to inheret/using to do it?
tryed this too but no luck: @System.Web.Mvc.Html.PartialExtensions.Partial(Model, "nameOfPartial")
Hi again,
I have solved this by writing a Partial View Macro file instead.Still could not use "@Html.Partial("nameOfPartial")" inside that one (no idea why), but i just render output direct instead.
Thanks ;-)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Render partial view inside MacroEngines razor file
Is there some way to render a partial view inside a MacroEngines scripting razor file?
Hi Amigo,
Did you try like that :
Thanks
Hi Alex,
@Html.Partial("nameOfPartial") works fine when i try in my template.
But i simply cant get it to work inside my cshtml macro script.
What do i need to inheret/using to do it?
tryed this too but no luck:
@System.Web.Mvc.Html.PartialExtensions.Partial(Model, "nameOfPartial")
Hi again,
I have solved this by writing a Partial View Macro file instead.
Still could not use "@Html.Partial("nameOfPartial")" inside that one (no idea why), but i just render output direct instead.
Thanks ;-)
is working on a reply...