• 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>
    
  • 相关阅读:
    __declspec关键字详细用法
    【转载】前端面试“http全过程”将所有HTTP相关知识抛出来了...
    【转载】理解C语言中的关键字extern
    Linux应用环境实战
    【转载】深入解析连接点
    【转载】COM多线程原理与应用
    【转载】COM的多线程模型
    【转载】COM 连接点
    【转载】COM:IUnknown、IClassFactory、IDispatch
    101. Symmetric Tree
  • 原文地址:https://www.cnblogs.com/rash/p/2591634.html
Copyright © 2020-2023  润新知