Browse by Tags

Related Posts

  • Data annotations, ErrorMessageResourceName, ErrorMessageResourceType

    Hi there, Could anyone pass on a bit of advice about using ErrorMessageResourceName and ErrorMessageResourceType with resource files. I am using an MVC app and we are setting the data annotations in the Data Model. Should the resource file (in a App_LocalResources folder) be at the Data Model or where...
    Posted to ASP.NET MVC (Forum) by bmoyno on 06-10-2009, 12:00 AM
    Filed under: data annotation, errormessageresourcename, errormessageresourcetype
  • Re: Localization in System.Data.ComponentModel.DataAnnotations

    Hi anonymouswrites, Could you pass on a bit of advice about using ErrorMessageResourceName and ErrorMessageResourceType with resource files. I am using an MVC app and we are setting the data annotations in the Data Model. Should the resource file (in a App_LocalResources folder) be at the Data Model...
    Posted to Localization (Forum) by bmoyno on 06-10-2009, 12:00 AM
    Filed under: data annotation, errormessageresourcename, errormessageresourcetype
  • Re: Data annotations, ErrorMessageResourceName, ErrorMessageResourceType

    Thanks Eilon, What I didn't understand was that the resource file must be converter to a class before being able to reference it in the typeof of the ErrorMessageResourceType in the data annotation. I hadn't encountered this ability before of turning a resource file into a class. I guess, it's...
    Posted to ASP.NET MVC (Forum) by bmoyno on 06-24-2009, 12:00 AM
    Filed under: errormessageresourcename, errormessageresourcetype, Data annotations
  • Re: Data annotations, ErrorMessageResourceName, ErrorMessageResourceType

    Hi Brad, You definitely put me on the right track with the .designer.cs file. I found out about setting the 'access modifier' to public and also setting the build action of the resource file to 'embedded resource'. This has worked a treat in terms of displaying the data annotations on...
    Posted to ASP.NET MVC (Forum) by bmoyno on 06-29-2009, 12:00 AM
    Filed under: localization, localisation, errormessageresourcename, errormessageresourcetype, Data annotations
  • Re: Data annotations, ErrorMessageResourceName, ErrorMessageResourceType

    Thanks Brad, I using option 2 already, but it's not working for the data annotations. It's working fine for the MVC ui in that when i set the language in the browser to french, the content in the .fr-FR.resx appears perfectly. However, this doesn't work for the data annotations of the data...
    Posted to ASP.NET MVC (Forum) by bmoyno on 06-30-2009, 12:00 AM
    Filed under: MVC, localization, localisation, errormessageresourcename, errormessageresourcetype, Data annotations, data model
Page 1 of 1 (5 items)