Table of Contents

Class HiddenInputAttribute

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Represents an attribute that is used to indicate whether a property or field value should be rendered as a hidden input element.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class HiddenInputAttribute : Attribute
Inheritance
HiddenInputAttribute
Inherited Members

Constructors

HiddenInputAttribute()

Initializes a new instance of the HiddenInputAttribute class.

public HiddenInputAttribute()

Properties

DisplayValue

Gets or sets a value that indicates whether to display the value of the hidden input element.

public bool DisplayValue { get; set; }

Property Value

bool

true if the value should be displayed; otherwise, false.