5
Vote

Respect model metadata and model validation in html helper controls

description

Hi,
It would be nice if HtmlHelper control respect ModelMetadata and ModelValidation. I think about adding:
  • maxlength attribute in TextBox or TextArea if property has StringLengthAttribute
  • title attribute if ModelMetadata has Description
  • placeholder attribute if ModelMetadata has Watermark
  • any others/ability to extend that

comments

wittml wrote Mar 8 at 3:45 PM

Not having this type of feature (specifically for MaxLength or StringLength) causes a lot of violations of DRY.