Reputation: 544
I am using Sitecore 7.1 . I used one field Type "Name Lookup value List" . I want catch name/value stored in that Field Type in Code behind in MVC . How can I catch the Key value Item .
Upvotes: 1
Views: 4453
Reputation: 2422
string keyValueRawValue = item["NameValueListFieldName"];
NameValueCollection nameValueCollection = Sitecore.Web.WebUtil.ParseUrlParameters(keyValueRawValue );
foreach (string key in nameValueCollection )
{
var value = nv[key];
}
Upvotes: 10