Can I conditionally hide properties being displayed using SPSWC:ProfilePropertyDisplayName and SPSWC:ProfilePropertyValue based on the field policy settings "Default Privacy Setting" (or the "Show To" option if "User can override" is checked) for the property? I'm using the following code to display the properties.
<tr> <td><SPSWC:ProfilePropertyDisplayName PropertyName="Hobbies" dir="ltr" runat="server"/>:</td> <td><SPSWC:ProfilePropertyValue PropertyName="Hobbies" dir="ltr" runat="server"/></td> </tr> <tr> <td><SPSWC:ProfilePropertyDisplayName PropertyName="Activities" dir="ltr" runat="server"/>:</td> <td><SPSWC:ProfilePropertyValue PropertyName="Activities" dir="ltr" runat="server"/></td> </tr> <tr> <td><SPSWC:ProfilePropertyDisplayName PropertyName="Allergies" dir="ltr" runat="server"/>:</td> <td><SPSWC:ProfilePropertyValue PropertyName="Allergies" dir="ltr" runat="server"/></td> </tr>
This is related to another question about user profile properties.
Thanks!