xval get message from resource file

Posted by Rob on Stack Overflow See other posts from Stack Overflow or by Rob
Published on 2010-04-29T11:33:13Z Indexed on 2010/04/29 11:37 UTC
Read the original article Hit count: 324

Filed under:
|
|

I'm working on a CMS system which uses a resource file to get information and errormessages from. The client side validation is working without problems, only it's not getting the errormessage from the resource file. While debugging i figured out xval seems to get the errormessages from a javascript file where the messages are set hard-coded. Is there some way to override this?

Below the code which should make the relation to the resourcefile en specify the error when the field is left empty.

[Property]
    [Required(ErrorMessageResourceType = typeof(CMSMessages), ErrorMessageResourceName = "EnterValidMoney")]
    public virtual Double ShippingCost { get; set; }

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about xval