Error @Html.X() Ext.net in Razor engine?

I got error when I write this code @Html.X().ResourceManager() in view error message :

Compiler Error Message: CS1928: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'X' and the best extension method overload 'Ext.Net.Extensions.X(System.Web.UI.Page)' has some invalid arguments

is there a setting that is less ?

thanks

Answers


This posted code looks to me as a WebForm syntax.

If you are using ASP.NET MVC Razor and the latest Ext.NET v2.x release, you can render all/any of the Ext.NET Components using Razor syntax.

The following sample demonstrates rendering a very simple TabPanel.

@{
    Layout = "";    
}

<!DOCTYPE html>

<html>
<head>
    <title>Ext.NET Examples</title>
</head>
<body>    
    @Html.X().ResourceManager()

    @(Html.X().TabPanel()
        .Height(300)
        .Items(items => {
            items.Add(Html.X().Panel().Title("Test"));
        }));
</body>
</html>

Need Your Help

Sphero Bluetooth Custom Implementation in Xamarin Android and MvvmCross

android bluetooth xamarin mvvmcross

I would like to establish a connection between two android devices and send data from one device to another using mvvmcross. I want to use the sphero bluetooth implementation but I need to understa...