开发者

How to GetProfile by custom properties?

开发者 https://www.devze.com 2023-02-16 08:05 出处:网络
<profile enabled=\"true\" automaticSaveEnabled=\"false\"> <properties> <add name=\"InvitationCode\" type=\"String\"/>
<profile enabled="true" automaticSaveEnabled="false">
  <properties>
    <add name="InvitationCode" type="String"/>
  </properties>
</profile>

How to get profiles with InvitationCode="foo"? Also can i make proper开发者_StackOverflow中文版ty unique?


Depending on if you have web site or web application it could be two ways. for web site Profile.InvitationCode and Profile.GetPropertyValue("InvitationCode") for Web Application

0

精彩评论

暂无评论...
验证码 换一张
取 消