代码改变世界

role配置,profile配置

2011-02-12 11:11  于为源  阅读(449)  评论(0编辑  收藏  举报

<roleManager enabled="false" defaultProvider="AspNetSqlRoleProvider">

<providers>

<clear/>

<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />

</providers>

</roleManager>

<profile defaultProvider="AspNetSqlProfileProvider">

<providers>

<clear/>

<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServiceName" applicationName="/"/>

</providers>

</profile>