8
Shouts

Customizing ASP.NET MVC’s Required Property Validation Messages - Davy Brion

published 779 days, 17 hours, 13 minutes ago posted by iftekharahmedamitiftekharahmedamit 782 days, 8 hours, 37 minutes ago
Thursday, April 07, 2011 12:32:18 PM GMT Monday, April 04, 2011 9:08:25 PM GMT

I recently got convention-based localization of display labels working with ASP.NET MVC, and this week, i wanted to get something similar working for required field validation messages. ASP.NET MVC3 shows a default validation message when a required field is not filled in, unless you specify a resource provider and the name of the resource key when you put the Required attribute on a property. Just like with the display value of labels, i wanted a convention based approach for this. I wanted ASP.NET M...

category: Web Dev | clicked: 2 | | source: davybrion.com | show counter code
tags: ASP.NET MVC, Validation, MVC, ASP.NET