开发者

ExtJS View loading

I am using this for load views in ExtJs window:

autoLoad: { url: '@Url.Content("~/Admin/AddEditAssetTypes/")', 
    scripts: true, 
开发者_JS百科    nocache: true }

But it is not loading views.


You're trying to load data using a path and not a url.

A url is a web address (can be relative) where as a path is a physical file path on the server.

Your code snippet should be something like

autoLoad: { 
    url: '/Admin/AddEditAssetTypes/filename.html', 
    scripts: true, 
    nocache: true
}

Basically, you should be able to navigate to the url config option in your browser. If you can't view it then Ext isn't going to be able to display it in a Panel.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜