79663780

Date: 2025-06-12 15:24:45
Score: 0.5
Natty:
Report link

In newer versions of Dnn, you can access directly the Profile property of UserInfo:

UserInfo user = PortalSettings.Current.UserInfo;
if(user.Profile != null)
{
string city = user.Profile.City;
string country = user.Profile.Country;
// etc...
}

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mario Vázquez