HiddenInputAttribute.DisplayValue Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.