profile设置

//web.config
<anonymousIdentification enabled="true"/>
  <profile automaticSaveEnabled="true">
   <properties>    
    
     <add name="UserAge" defaultValue="0" allowAnonymous="false" type="int"/>
     <add name="QQ" defaultValue="12345678" allowAnonymous="false" type="string"/>
    
   </properties>
  </profile>
//cs文件
Label1.Text = Profile.UserName + Profile.QQ;
posted @ 2010-08-09 11:30  midisong  阅读(192)  评论(0编辑  收藏  举报