Hello,
Does anyone know how to render html from a razor file from within another razor file? In other words how to nest Razor Controls.
I am new to Razor but thought @Html.Partial would do the trick but that doesn't seem to be supported in DNN (I hope I'm mistaken). Is there another way to do this? i.e. The equivalent of:
@Html.Partial("~/controls/MyControl.cshtml", Model);
I assume this would merge the Model object properties with the razor file and write the output to the containing file. But I don't think this is available in DNN's Razor version as I can't get Html.Partial in the intellisense.
Best Regards,
Steve