听闻在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>
<properties>
<add name="UserName" allowAnonymous="true" />
<add name="ShoppingCart" allowAnonymous="false" type="BLL.CartManager"/>
</properties>
</profile>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货