Dela via


HiddenInputAttribute.DisplayValue Property

Definition

Gets or sets a value indicating whether to display the value as well as provide a hidden <input> element. The default value is true.

public:
 property bool DisplayValue { bool get(); void set(bool value); };
public bool DisplayValue { get; set; }
member this.DisplayValue : bool with get, set
Public Property DisplayValue As Boolean

Property Value

Remarks

If false, also causes the default Object display and editor templates to return HTML lacking the usual per-property <div> wrapper around the associated property and the default display "HiddenInput" template to return string.Empty for the associated property. Thus the default Object display template effectively skips the property and the default Object editor template returns only the hidden <input> element for the property.

Applies to