Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Sitecore 7.1 。我使用了一个字段 Type "Name Lookup value List"。我想在 MVC 后面的代码中捕获存储在该字段类型中的名称/值。我怎样才能抓住关键值 Item 。
string keyValueRawValue = item["NameValueListFieldName"]; NameValueCollection nameValueCollection = Sitecore.Web.WebUtil.ParseUrlParameters(keyValueRawValue ); foreach (string key in nameValueCollection ) { var value = nv[key]; }