Property AllowRenderingMaxLengthAttribute
| Improve this Doc View SourceAllowRenderingMaxLengthAttribute
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.
Declaration
protected bool AllowRenderingMaxLengthAttribute { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
If both attributes are specified, the one with the smaller value will be used for the rendered maxlength
attribute.