What is use of UIHint attribute in MVC [duplicate]
This question already has an answer here: UIHint Attribute in MVC 2 answers Can anyone please explain me what is the use of UIHint attribute in MVC . Why do we need this. and when and how to use . Thanks UIHintAttribute Specifies the template or user control that Dynamic Data uses to display a data field. This is the MSDN description of UIHintAttribute. It firstly introduced for Dynamic Data applications and ASP.NET MVC also adapted it. If you annotate a property with UIHint attribute and use EditorFor or DisplayFor inside your views, ASP.NET MVC framework will look for the specified template