Watch this example on YouTube
1. Add App_GlobalResources folder to solution
2. Add Errors.resx to App_GlobalResources
3. under name in Errors.resx enter PropertyValueInvalid
4. under Value in Errors.resx enter new error message
5. Add Errors.resx to Global.asax
DefaultModelBinder.ResourceClassKey = "Errors";
No comments:
Post a Comment