Dictionary<string, string> dc = new Dictionary<string, string>();

前台页面:

        <div id="tb">
            @if (ViewBag.data != null)
            {
                foreach (KeyValuePair<string, string> item in ((System.Collections.Generic.Dictionary<string, string>)ViewBag.data))
                {
                    <input type="hidden" name="@item.Key" value="@item.Value" />
                }
            }
        </div>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2021-10-07
  • 2021-06-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案