How to add css class?

@Html.EditorFor(model => model.Screen.Description) 

How to add a class or some other attributes to the generated input?

+4
source share
1 answer

The built-in editor template is too general (it can display arbitrary objects) for such a concept to make sense. You can either

+3
source

Source: https://habr.com/ru/post/1338800/


All Articles