javascript error on ext.net

橙三吉。 提交于 2020-01-06 07:14:38

问题


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.

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.


回答1:


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");

The "ext.axd" IgnoreRoute is the important one.

The .RegisterRoutes method may be located within /App_Start/RouteConfig.cs

Hope this helps.



来源:https://stackoverflow.com/questions/15596491/javascript-error-on-ext-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!