ASP.NET MVC Required Field Indicator

前端 未结 6 2398
我在风中等你
我在风中等你 2020-12-15 00:17

For fields in my ASP.NET MVC view that have been attributed as required, is there any way for the framework to render some sort of indicator automatically that the field is

6条回答
  •  一生所求
    2020-12-15 01:04

    I did that way because my required fields must be dynamic (defined in a configuration file)

    Add at the end of your View:

        
    

提交回复
热议问题