在cshtml文件中显示所选值 写了这段代码,但它没有用
List<Item> lstWellnessName = null;
Sitecore.Data.Fields.MultilistField WellnessList =
WellnessItem.Fields["Property Wellness"];
if (WellnessList != null && WellnessList.TargetIDs != null)
{
Item[] result = WellnessList.GetItems();
lstWellnessName = result.ToList();
}