Last post Feb 10, 2019 12:47 AM by andrewcw
Feb 09, 2019 03:39 AM|andrewcw|LINK
One of my razor pages has a full blown HTML page for a model variable
<div><pre>@Model.TheHMLText</pre></div> - HTMLText comes with its own head and style content.... so that just gets rendered with all the HTML tags as in
<style type="text/css"> etc etc
I'm looking at @Html.RenderPartial(...) But this function feels like it looks static content - but mine is dynamically loaded from my model. So.... What are my options... ??
Feb 09, 2019 08:26 AM|maherjendoubi|LINK
You can create a new tag helper for your need.
Feb 09, 2019 08:16 PM|bruce (sqlwork.com)|LINK
Feb 10, 2019 12:47 AM|andrewcw|LINK
Thanks - it sure seemed there was a simple solution to such a common task !!! It works excellent