Freigeben über


DisplayExtensions.DisplayForModel Method

Include Protected Members
Include Inherited Members

Returns HTML markup for each property in the model.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member DisplayForModel(HtmlHelper) Returns HTML markup for each property in the model.
Public methodStatic member DisplayForModel(HtmlHelper, Object) Returns HTML markup for each property in the model, using additional view data.
Public methodStatic member DisplayForModel(HtmlHelper, String) Returns HTML markup for each property in the model using the specified template.
Public methodStatic member DisplayForModel(HtmlHelper, String, Object) Returns HTML markup for each property in the model, using the specified template and additional view data.
Public methodStatic member DisplayForModel(HtmlHelper, String, String) Returns HTML markup for each property in the model using the specified template and HTML field ID.
Public methodStatic member DisplayForModel(HtmlHelper, String, String, Object) Returns HTML markup for each property in the model, using the specified template, an HTML field ID, and additional view data.

Top

Remarks

This method is typically used to display values from the object that is exposed by the Model property. For more information about the differences between this method and the other Display methods, see the DisplayExtensions class overview.

See Also

Reference

DisplayExtensions Class

System.Web.Mvc.Html Namespace

Other Resources

Walkthrough: Using Templated Helpers to Display Data in ASP.NET MVC