How do I create a MVC Razor template for DisplayFor()

前端 未结 6 1324
小蘑菇
小蘑菇 2020-12-03 03:07

I have a couple of properties in my view model that are display-only but I need to retrieve their values using jQuery to perform a calculation on the page. The standard

6条回答
  •  隐瞒了意图╮
    2020-12-03 03:15

    There's an article explaining the Templates (Display + Editor) in Razor, and also the UIHint attribute.

提交回复
热议问题