Jul 10, 2021, 10:32 AM
[OPEN] [#1862] how to mix old views with new tag helpers?
Hi
I have views with html helpers and I want to migrate to 7.2
how can we mix html helpers with tag helpers
this code raises error:
Ext.Net.Core.Exceptions.LayoutException: Unexpected element 'TextFieldHtmlHelper' nested into 'ComponentRawContentPropertyTagHelper'.
I have views with html helpers and I want to migrate to 7.2
how can we mix html helpers with tag helpers
this code raises error:
Ext.Net.Core.Exceptions.LayoutException: Unexpected element 'TextFieldHtmlHelper' nested into 'ComponentRawContentPropertyTagHelper'.
@model ExtSample.Models.HomeModel
@{
ViewData["Title"] = "Home page";
var X = Html.X();
}
<ext-section target="Main">
<ext-container flex="1">
<content>
@(X.TextField().FieldLabel("Item 1"))
</content>
</ext-container>
</ext-section>
Last edited by fabricio.murta; Jul 14, 2021 at 9:42 AM.