Delen via


DefaultHtmlGenerator.AllowRenderingMaxLengthAttribute Property

Definition

Gets or sets a value that indicates whether the maxlength attribute should be rendered for compatible HTML input elements, when they're bound to models marked with either StringLengthAttribute or MaxLengthAttribute attributes.

protected:
 property bool AllowRenderingMaxLengthAttribute { bool get(); };
protected bool AllowRenderingMaxLengthAttribute { get; }
member this.AllowRenderingMaxLengthAttribute : bool
Protected ReadOnly Property AllowRenderingMaxLengthAttribute As Boolean

Property Value

The default value is true.

Remarks

If both attributes are specified, the one with the smaller value will be used for the rendered maxlength attribute.

This property is currently ignored.

Applies to