emplated helpers in Asp.Net MVC builds HTML using metadata and template. The metadata includes information about the model value(name and type) and model metadata ( added through data annotations). More details about the Data Annotation will be seen in later session
Html.Display and Html.Editorare the template helpers
Html.DisplayForModel and Html.EditorForModelhelpers build the HTML for an entire model object. Using this property you can add new property and view the changes in UI instantly.
Example:
Model class:
Controller:
View:
Output: