I'm trying to either show or hide a datalist control based on a users Audience.
AudienceLoader audienceLoader = AudienceLoader.GetAudienceLoader();
string audienceFieldValue = "United States";
if ((AudienceManager.IsCurrentUserInAudienceOf(audienceLoader, audienceFieldValue, false)))
DataList2.Visible = true;
DataList2.Visible = false;
I have tried couple different things this is where I'm at now... any help would be appreciated.
View Complete Post