Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6108693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:19:23+00:00 2026-05-23T14:19:23+00:00

I´m using JQuery Unobtrusive validation… I´m configured with Globalize to accept numbers like that

  • 0

I´m using JQuery Unobtrusive validation… I´m configured with Globalize to accept numbers like that : 1.500,50 (Masked by JQuery)

My code so far

1- ) Configured Globalize

$.validator.methods.number = function (value, element) {
    return this.optional(element) || !isNaN(Globalize.parseFloat(value));
};

$(function () {
    Globalize.culture('pt-BR');
});

2-) Configured web.config

<globalization culture="pt-BR" uiCulture="pt-BR" />

Ok, so I´m using a JQuery plugin to format Textbox to Money(PT-BR) like that : 1.500.000,50…

My JQuery Client Validation is working fine! But when it goes to server validation I got a ModelState error:

"The value '1.500.000,50' is not valid for Total."

How can I fix that?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:19:23+00:00Added an answer on May 23, 2026 at 2:19 pm

    There is a problem in MVC binding to values like that. Go through this post by Phil Haack. It shows you how to create a cusom model binder to handle this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Asp.Net Mvc3 and the unobtrusive jquery validation. I'd like to have
We have a ASP.NET MVC 3 application that uses unobtrusive jQuery validation. The page
Im using the built in jQuery validation <script src=@Url.Content(~/Scripts/jquery.validate.min.js) type=text/javascript></script> <script src=@Url.Content(~/Scripts/jquery.validate.unobtrusive.min.js) type=text/javascript></script> Works
I'm using asp.net mvc 3 with jquery unobtrusive validation. I recently changed from standard
I am using unobtrusive validation in an ASP.Net MVC3 app. I would like to
In an MVC3 app, using jquery unobtrusive validation, and a view/model with a [Remote]
I'm writing an MVC3 site, and I'm using JQuery unobtrusive validation to validate my
I'm looking for a good 10 minute introduction to Unobtrusive Javascript using JQuery. I'm
Using jQuery, is there a way to select all tag that reference a specific
Using jquery I have a clicking tab mechanism that are nothing but anchor tags

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.