ext.net上的javascript错误 [英] javascript error on ext.net
问题描述
我是ext.net框架的新手,我需要很多帮助.首先,我设法解决了有关 web.config
文件的问题.现在,我可以轻松使用ext.net了,没有引用问题出现,但是现在我在运行代码时遇到了麻烦.
I am new on ext.net framework and I require lots of help.
To begin with the problem I managed to solve the problem regarding the web.config
file.
Now I can use the ext.net with ease and no references problem has arrived but now I am having trouble running the code.
当我调试并运行所需的解决方案时,会弹出有关Java脚本的错误.该错误表明 Microsoft JScript运行时错误:'Ext'未定义
.
As I debug and run the desired solution the error pops up regarding the java script. The error says Microsoft JScript runtime error: 'Ext' is undefined
.
我不知道该错误,如果你们中的任何一个在这个问题上能帮助我,这将是有帮助的.
I have no idea about the error and it will be helpful if any of you guys would help me on this matter.
推荐答案
在您的 Global.asax
文件中,并在 RegisterRoutes
方法中,确保您具有以下行(s):
Inside your Global.asax
file, and within the RegisterRoutes
Method, ensure you have the following line(s):
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{exclude}/{extnet}/ext.axd");
"ext.axd" IgnoreRoute
是重要的一个.
The "ext.axd" IgnoreRoute
is the important one.
.RegisterRoutes
方法可能位于/App_Start/RouteConfig.cs中
The .RegisterRoutes
method may be located within /App_Start/RouteConfig.cs
希望这会有所帮助.
这篇关于ext.net上的javascript错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!