[OPEN] [#1862] how to mix old views with new tag helpers?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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'.


    @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.

Similar Threads

  1. Mix use of PageProxy & AjaxProxy
    By vincent_van in forum 2.x Help
    Replies: 2
    Last Post: Jun 06, 2014, 8:43 AM
  2. [CLOSED] Custom Ext.NET components as MVC Helpers?
    By anup in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Aug 08, 2012, 7:53 AM
  3. [CLOSED] ASP.NET MVC - HTML Helpers
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 26, 2011, 1:21 PM
  4. How to mix Coolite with ExtJs?
    By dbassett74 in forum 1.x Help
    Replies: 1
    Last Post: Jun 17, 2009, 4:49 PM
  5. Mix and match TreeNode and AsyncTreeNode?
    By dbassett74 in forum 1.x Help
    Replies: 1
    Last Post: May 05, 2009, 12:36 PM

Posting Permissions