"Ext未定义"可能的解决方法

第一种情况:当用Ext开发时

     注意,在页面中引入Ext脚本的顺序应该如下所示:

     <script type="text/javascript" src="http://www.cnblogs.com/adapter/ext/ext-base.js"></script>
     <script type="text/javascript" src="http://www.cnblogs.com/ext-all.js"></script>

第二种情况:当用Coolite开发时

      1.在每个ScriptManager 控件中增加如下属性:

      <ext:ScriptManager ID="ScriptManager1" runat="server"  CleanResourceUrl="false"  />

      2.同时需要在配置文件中添加如下信息:

     

 FOR IIS 6.0 and earlier    

       Add the following to <httpModules> section under <system.web> section in web.config:

            <add name="AjaxRequestModule" type="Coolite.Ext.Web.AjaxRequestModule, Coolite.Ext.Web" />

        Add the following to <httpHandlers> section under <system.web> section in web.config:

            <add path="*/coolite.axd" verb="*" type="Coolite.Ext.Web.ResourceManager" validate="false" />


       FOR IIS 7.0, add the following to <system.webServer>

        <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
            <modules>
                <add name="AjaxRequestModule" preCondition="managedHandler" type="Coolite.Ext.Web.AjaxRequestModule, Coolite.Ext.Web" />
            </modules>
            <handlers>
                <add name="AjaxRequestHandler" verb="*" path="*/coolite.axd" preCondition="integratedMode" type="Coolite.Ext.Web.ResourceManager"/>
            </handlers>
        </system.webServer>

 

posted @ 2009-11-30 11:15  GIS一颗星  阅读(2091)  评论(1)    收藏  举报