+ -
当前位置:首页 → 问答吧 → Web Application怎样能便捷的使用Profile?

Web Application怎样能便捷的使用Profile?

时间:2011-12-24

来源:互联网

听闻在Web site中会自动生成ProfileCommon类可以很方便的使用Profile,而Web application不会自动生成此类, 所以想请问有什么方法能使web application像web site那样便捷的使用Profile? 为Web.config中profile-properties内置属性赋值或取值? 
C# code

      <profile enabled="true" defaultProvider="SqlProfileProvider">
        <properties>
          <add name="UserName" allowAnonymous="true" />
          <add name="ShoppingCart" allowAnonymous="false" type="BLL.CartManager"/>
        </properties>
      </profile>

作者: q380472335   发布时间: 2011-12-24

哎 自己给自己顶一个吧..新手不容易

作者: q380472335   发布时间: 2011-12-25