Hi everybody,
I'm wondering how can I include some info into the chtml using Razor syntax. I found this
https://stackoverflow.com/questions/32012178/how-to-include-raw-html-file-into-razor-viewhowever when I try to type @Html. I get Html doesn't exist in the current context. I assume I need to add some using but not sure what exactly. This is what I'm using right now
@using Siriusware.Middleware
@using Siriusware.Library
@inherits RazorEngine.Templating.TemplateBase<Siriusware.Middleware.Rentals.TemplateData>
@{
const string templateName = "FormList.cshtml";
}
what do I need to add in order to be able to use @Html.Raw() syntax ?
UPDATE. My colleague told me that we can just use @Raw() and this indeed works.
Thanks in advance.
If it's not broken, fix it until it is.
My Blog