Solved

MVC3 number validation and localization

Posted on 2012-12-30
1
363 Views
Last Modified: 2013-02-07
In my MVC3 app, the user can choose their currency. When they do this and it changes to a currency that uses commas and decimals opposite to the US method (commas for decimal points and dots for number separators).

I'm using the built in @Html.ValidationMessageFor() helpers and it doesn't like the non US format for numbers.

If an input has 1,00 instead of 1.00 it complains that the input must be a number. Googling around yesterday, I read you have to download and install the .NET 4 full language pack, but that didn't help.

Is there any easy way to use the built in validation helpers along with localization, or do I need to switch to jquery validation?
0
Comment
Question by:Josh_Blade
1 Comment
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 38731549
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now