Feb 09, 2017, 2:11 AM
[OPEN] [#1439] [4.2.0] C# MVC UI under Aria Theme will cause WebResource.axd, The resource cannot be found error
Hello,
Please check for us that when we use Ext.NET 4.1.0 under MVC4 with Aria Theme will cause following error.
Error Message from Browser:
The Browser Developer Network Transaction:
Thanks your help,
Ted Chen
Please check for us that when we use Ext.NET 4.1.0 under MVC4 with Aria Theme will cause following error.
Error Message from Browser:
The Browser Developer Network Transaction:
@using ResMgmt.Helpers;
@model ResMgmt.Models.BrandModelModel
@{
MvcResourceManager.RegisterGlobalScript("~/Scripts/Settings/MIBrandModelMgmt.js");
ViewBag.Title = "å»*牌型號è¨*定";
var X = Html.X();
var gpItemSet = X.GridPanel()
.ID("PanelItemSetGrid")
.AnchorHorizontal("80%")
.Title("å»*牌列表")
.Region(Region.West)
.Width(300)
.Split(true)
.ForceFit(true)
.TopBar(
X.Toolbar()
.Items(
X.Button()
.Text("新增")
.Icon(Icon.Add)
.Width(80)
.UI(UI.Success)
.Handler("handlerMIBrandModelMgmt.onCreate();"),
X.Button()
.Text("刪除")
.Icon(Icon.Delete)
.Width(80)
.UI(UI.Success)
.Handler("handlerMIBrandModelMgmt.onDelete();"),
X.Button()
.Text("儲å*˜")
.Icon(Icon.Disk)
.Width(80)
.UI(UI.Success)
.Handler("handlerMIBrandModelMgmt.onSave();")
)
)
.BottomBar(
X.PagingToolbar()
.HideRefresh(true)
);
}
@(
X.Panel()
.ID("PanelBrandModelMgmt")
.Closable(true)
.AutoScroll(true)
.Defaults(new Parameter("Margin", 10))
.Title("通信器æå»*牌型號è¨*定")
.Layout(LayoutType.Fit)
.Items(
X.Container()
.Layout(LayoutType.Border)
.Defaults(new Parameter("Margin", 5))
.Items(
gpItemSet
)
)
)
The Partial View Action Codespublic ActionResult MIBrandModelMgmt(string containerId)
{
var result = new Ext.Net.MVC.PartialViewResult
{
ViewName = "MIBrandModelMgmt",
ContainerId = containerId,
RenderMode = RenderMode.AddTo
};
BrandModelModel model = new BrandModelModel();
model.EquipTypes = _uom.IrCodes
.GetEquipTypes()
.ToList()
.Select(c => new CodeModel(c))
.ToList();
result.Model = model;
Ext.Net.X.GetCmp<TabPanel>(containerId).SetLastTabAsActive();
return result;
}
We also found Button.Icon & Button.UI will also cause another error under Ext.NET 4.2.0. We will post it in another thread.Thanks your help,
Ted Chen
Last edited by fabricio.murta; Feb 20, 2017 at 1:52 PM.