Alvin 's Blog

Ascenta 承诺软件 WZCNSOFT

有profile 的Web.Config

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

阅读更多
个人分类: 收藏文档
上一篇在一个已有的网站上加上Microsoft.Web.Atlas
下一篇atlas Web.Config 配置文件
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭