zoukankan      html  css  js  c++  java
  • 已有webSite工程中增加Atlas支持方法

    首先添加对Microsoft.Web.Atlas的引用(C:\Program Files\Microsoft ASP.NET\Atlas\v2.0.50727\Atlas),然后将以下内容加入Web.config文件中的<configuration>标签中即可。
        <configSections>
            
    <sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup">
                
    <section name="converters" type="Microsoft.Web.Configuration.ConvertersSection" requirePermission="false"/>
                
    <section name="webServices" type="Microsoft.Web.Configuration.WebServicesSection" requirePermission="false"/>
                
    <section name="authenticationService" type="Microsoft.Web.Configuration.AuthenticationServiceSection" requirePermission="false"/>
                
    <section name="profileService" type="Microsoft.Web.Configuration.ProfileServiceSection" requirePermission="false"/>
            
    </sectionGroup>
        
    </configSections>
        
    <!-- 
          The microsoft.web section defines items required for the Atlas framework.
      
    -->
        
    <microsoft.web>
            
    <converters>
                
    <add type="Microsoft.Web.Script.Serialization.Converters.DataSetConverter"/>
                
    <add type="Microsoft.Web.Script.Serialization.Converters.DataRowConverter"/>
                
    <add type="Microsoft.Web.Script.Serialization.Converters.DataTableConverter"/>
            
    </converters>
            
    <webServices enableBrowserAccess="true"/>
            
    <!--
          Uncomment this line to enable the authentication service.
        <authenticationService enabled="true" />
        
    -->
            
    <!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved 
             and modified in Atlas applications, you need to add each property name to the setProperties and 
             getProperties attributes.  If you intend for all properties to be available, you can use "*"
             as a shorthand rather than enumerating each property  
    -->
            
    <!--  
        <profileService enabled="true" 
                        setProperties="propertyname1;propertyname2" 
                        getProperties="propertyname1;propertyname2" />
        
    -->
        
    </microsoft.web>
        
    <appSettings/>
        
    <connectionStrings/>
        
    <system.web>
            
    <pages>
                
    <controls>
                    
    <add namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>
                    
    <add namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>
                
    </controls>
            
    </pages>
            
    <!-- 
                Set compilation debug="true" to insert debugging 
                symbols into the compiled page. Because this 
                affects performance, set this value to true only 
                during development.
            
    -->
            
    <compilation debug="true">
                
    <assemblies>
                    
    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    
    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
            
    <!--
              ASMX is mapped to a new handler so that proxy javascripts can also be served.
        
    -->
            
    <httpHandlers>
                
    <remove verb="*" path="*.asmx"/>
                
    <add verb="*" path="*.asmx" type="Microsoft.Web.Services.ScriptHandlerFactory" validate="false"/>
                
    <!--
              The MultiRequestHandler enables multiple requests to be handled in one
              roundtrip to the server. Its use requires Full Trust.
          
    -->
                
    <add verb="*" path="atlasbatchcall.axd" type="Microsoft.Web.Services.MultiRequestHandler" validate="false"/>
                
    <add verb="*" path="atlasglob.axd" type="Microsoft.Web.Globalization.GlobalizationHandler" validate="false"/>
                
    <!--
              The IFrameHandler enables a limited form of cross-domain calls to 'Atlas' web services.
              This should only be enabled if you need this functionality and you're willing to expose
              the data publicly on the Internet.
              To use it, you will also need to add the attribute [WebOperation(true, ResponseFormatMode.Json, true)]
              on the methods that you want to be called cross-domain.
              This attribute is by default on any DataService's GetData method.
              
          <add verb="*" path="iframecall.axd" type="Microsoft.Web.Services.IFrameHandler" validate="false"/>
          
    -->
                
    <add verb="*" path="*.asbx" type="Microsoft.Web.Services.ScriptHandlerFactory" validate="false"/>
            
    </httpHandlers>
            
    <httpModules>
                
    <add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>
                
    <add name="BridgeModule" type="Microsoft.Web.Services.BridgeModule"/>
                
    <add name="WebResourceCompression" type="Microsoft.Web.Services.WebResourceCompressionModule"/>
            
    </httpModules>
  • 相关阅读:
    Qt 查询字符串数据
    #include <stdint.h>
    滤波器设计-巴特沃尔斯低通滤波设计 转
    小波学习之二(单层一维离散小波变换DWT的Mallat算法C++实现优化)--转载
    机器学习之Bagging与随机森林笔记
    机器学习之决策树笔记
    机器学习之softmax回归笔记
    机器学习之逻辑回归(Logistic)笔记
    机器学习之模型拟合效果的判断笔记
    机器学习最小二乘法笔记
  • 原文地址:https://www.cnblogs.com/Finding2013/p/467784.html
Copyright © 2011-2022 走看看