MetadataType and client validation in ASP.NET MVC 2

前端 未结 3 1870
刺人心
刺人心 2021-01-13 02:31

Inherited properties and MetadataType does not seem to work with client side validation in ASP.NET MVC 2.

The validation of our MetadataTypes work a

3条回答
  •  执念已碎
    2021-01-13 03:00

    According to a Microsoft official this is a bug in ASP.NET MVC 2. I was given the link below and although the scenario isn't exactly the same, it seems to be the same problem. As far as I can tell it is related to inhertited properties and DataAnnotations model metadata provider. The link says they will try to fix the issue in ASP.NET MVC 3.

    Asp.net MVC 2 RC2: the client side validation does not work with overridden properties

提交回复
热议问题