Macro Container (Models Builder return type IHtmlString) returns null
I'm using 7.5.3 with a Macro Container and I keep getting null when trying to return HTML inside a Macro
I'm using ModelsBuilder which generates a default return type of "IHtmlString". So in my partial view I call the property direct along with @Html.Raw but immediately get a null reference exception. If I debug it the model property is null. Very strange!
If I manually change the Models Builder model to a dynamic all is good and I get the HTML as expected!
Macro Container (Models Builder return type IHtmlString) returns null
I'm using 7.5.3 with a Macro Container and I keep getting null when trying to return HTML inside a Macro
I'm using ModelsBuilder which generates a default return type of "IHtmlString". So in my partial view I call the property direct along with @Html.Raw but immediately get a null reference exception. If I debug it the model property is null. Very strange!
If I manually change the Models Builder model to a dynamic all is good and I get the HTML as expected!
Any ideas? Is the macro container broken?
Martin
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.