有profile 的Web.Config

来源:互联网 发布:java跳转jsp页面 编辑:程序博客网 时间:2024/05/18 00:53

<?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>

原创粉丝点击