Tag: Ajax控件失效预览模式: 普通 | 列表

web.config文件致Ajax控件失效

发现这个问题一开始真是不知哪里出问题,因为同样的环境下不同的两个项目,一个用得好好的,一个却没反应,后果认真对比了一下web.config,发现问题就在这里了。

不能用Ajax控件的web.config明显少了很多配置



<?xml version="1.0"?>
<!-- 
    注意: 除了手动编辑此文件以外,您还可以使用 
    Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
     “网站”->“Asp.Net 配置”选项。
    设置和注释的完整列表在 
    machine.config.comments 中,该文件通常位于 
    \Windows\Microsoft.Net\Framework\v2.x\Config 中
-->
<configuration>
    <appSettings/>
    <connectionStrings>
        <add name="SQLConnString" connectionString="Server=Servera;Integrated Security=True;Database=P23asdad;uid=sa;password=maasdfewads; Max Pool Size = 300; Persist Security Info=True" providerName="System.Data.SqlClient"/>
    </connectionStrings>
    <system.web>
        <sessionState mode="StateServer" cookieless="false" timeout="300" stateConnectionString="tcpip=localhost:42424" stateNetworkTimeout="14400"/>
        <!-- 
            设置 compilation debug="true" 将调试符号插入
            已编译的页面中。但由于这会 
            影响性能,因此只在开发过程中将此值 
            设置为 true。
        -->
        <pages>
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </controls>
        </pages>
        <compilation debug="true">
    &...

查看更多...

Tags: Ajax控件失效

分类:编程技术 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 6901