视图中头部添加 @using System.Collections;

循环读取哈希表数据
 <ul id="AccessView" class="sys_spec_text">
            @foreach (DictionaryEntry item in (ViewBag.FieldsValues as Hashtable))
            {
                <li title="@item.Value">
                    <a id="@item.Key" lable="@item.Value"><img src="/Content/Images/Icon16/tag_blue.png">@item.Value</a><i></i></li>
                    }
 </ul>

 




相关文章:

  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2021-09-19
  • 2021-07-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2021-11-11
  • 2021-12-17
  • 2022-12-23
相关资源
相似解决方案