代码之家  ›  专栏  ›  技术社区  ›  CodeGrue

使用uihint将字符串呈现为“label”而不是ASP.NET MVC 2中的“input”?

  •  0
  • CodeGrue  · 技术社区  · 14 年前

    我试过uihint(“label”),但它不会改变行为。如果有人也能给我指出uihint的可能值列表,那就太棒了!

    2 回复  |  直到 14 年前
        1
  •  1
  •   Jab    14 年前

    尝试 [HiddenInput(DisplayValue=true)] 在你的财产上。

        2
  •  0
  •   Raj Kaimal    14 年前

    在label.ascx共享文件夹中是否有displaytemplate文件夹?