关闭

有profile 的Web.Config

标签: assemblysqlservercompilationauthenticationpropertiesasp.net
1183人阅读 评论(0) 收藏 举报
分类:

<?xml version="1.0"?>
<configuration>
 <!-- Common ASP.NET configuration -->
 <appSettings/>
 <connectionStrings>
  <add name="SQLProfileConnString" connectionString="Data Source=./SQLEXPRESS;AttachDbFilename=c:/t/AjaxProWebSite1/App_Data/ASPNETDB.mdf;Integrated Security=True;User Instance=True"/>
 </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>
  <anonymousIdentification enabled="true"/>
  <roleManager enabled="true"/>
  <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>
  <authentication mode="Forms"/>

  <!--Profile B-->
  <profile automaticSaveEnabled="true" defaultProvider="MyProfileProvide">
   <providers>
    <add name="MyProfileProvide" connectionStringName="SQLProfileConnString" type="System.Web.Profile.SqlProfileProvider"/>
   </providers>
   <properties>
    <add name="MyRec" type="MyDemo.MyRecs" allowAnonymous="true" provider="MyProfileProvide"/>
   </properties>
  </profile>
  <!--Profile E-->

  <!-- Membership Provider for SqlServer -->
  <!--MemberShip B-->
  <membership defaultProvider="SQLMembershipProvider">
   <providers>
    <add name="SQLMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SQLProfileConnString" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed"/>
   </providers>
  </membership>

  <!--MemberShip E-->

 </system.web>
 <!-- Handler configuration for Ajax.NET Professional -->
 <location path="ajaxpro">
  <system.web>
   <httpHandlers>
    <add verb="*" path="*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/>
   </httpHandlers>

  </system.web>
 </location>

</configuration>

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:119341次
    • 积分:1671
    • 等级:
    • 排名:千里之外
    • 原创:43篇
    • 转载:19篇
    • 译文:0篇
    • 评论:28条
    文章分类
    最新评论