Hi Joe,
I am building an Intranet and need to show a user's supervisor in their profile. The supervisors all belong to a single role named Managers. I created an ISettingControl which looks up the members of the Managers role and adds them to a drop down list for selection. The supervisors' UserID is stored when the profile is saved.
Users should not be able to change their Supervisor so I set the "editableByUser" option to false in the profile config. This resulted in the UserID for the selected supervisor showing up on the UserProfile.aspx page. To get around this, I modified the ISettingControl to disable the dropdown if the logged-in user is not a member of the Administrators or Role Admins role. This results in the drop down being displayed in a disabled state. All of this is working great.
The problem now is that the UserID for the selected Supervisor is being displayed on the ProfileView page. I realize that the ISettingControl is probably not being called for the ProfileView page (nor the UserProfile when the profile definition has editableByUser="false" set). So, how do I go about displaying the Supervisor's name and not their UserID on the ProfileView page?
Thanks,
Joe D.