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