Localizing validation messages at client side by jQuery in ASP.net MVC -


i using jquery client side validation data annotations. working fine localize message when non numeric value entered in numeric textbox. server side validation can done setting defaultmodelbinder.resourceclasskey resource class name , providing value propertyvalueinvalid key.

however client side validation asp.net mvc using it's own resource file key 'clientdatatypemodelvalidatorprovider_fieldmustbenumeric'. way solve found described @ custom server , client side required validator in mvc 2 using jquery.validate. solution work wondering if there easier or more correct way it.

thanks.

maybe bit more elegant way rewrite system.web.mvc.clientdatatypemodelvalidatorprovider class , replace in modelvalidatorproviders.providers collection.

see section implicit non-numeric-field problem in http://jwwishart.blogspot.com/2011/03/custom-server-and-client-side-required.html more details.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -