听闻在Web site中会自动生成ProfileCommon类可以很方便的使用Profile,而Web application不会自动生成此类, 所以想请问有什么方法能使web application像web site那样便捷的使用Profile? 为Web.config中profile-properties内置属性赋值或取值?       <profile enabled="true" defaultProvider="SqlProfileProvider">
        <properties>
          <add name="UserName" allowAnonymous="true" />
          <add name="ShoppingCart" allowAnonymous="false" type="BLL.CartManager"/>
        </properties>
      </profile>