zoukankan      html  css  js  c++  java
  • web.config配置

    在config中配置自己项目中的用户控件:

    <pages> 
            <controls> 
                <add tagPrefix="fish" tagName="MainMenu" src="~/Controls/MainMenu.ascx" /> 
                <add tagPrefix="fish" tagName="PageHeader" src="~/Controls/PageHeader.ascx" /> 
            </controls> 
        </pages> 
    

     在config中配置命名空间:

    <pages> 
            <namespaces> 
                <add namespace="MyMVC" /> 
                <add namespace="WebSiteCommonLib" /> 
                <add namespace="WebSiteModel" /> 
            </namespaces> 
        </pages> 
    

     默认的httpmodules

     <httpModules>
                <add name="OutputCache" type="System.Web.Caching.OutputCacheModule"/>
                <add name="Session" type="System.Web.SessionState.SessionStateModule"/>
                <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule"/>
                <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule"/>
                <add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule"/>
                <add name="RoleManager" type="System.Web.Security.RoleManagerModule"/>
                <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule"/>
                <add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule"/>
                <add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule"/>
                <add name="Profile" type="System.Web.Profile.ProfileModule"/>
                <add name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
                <add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            </httpModules>
    
  • 相关阅读:
    创建商品APP
    商品模块表结构分析
    sprintf 和 fprintf
    linux中sys目录
    linux中proc目录
    ioctl()函数
    ffmpeg下载安装
    【转】写给小白的实时音视频技术入门提纲
    linux常见目录解释
    linux nfs客户端开启失败解决办法
  • 原文地址:https://www.cnblogs.com/rash/p/2591634.html
Copyright © 2011-2022 走看看