U
U
Uncle Seryozha2016-10-14 21:10:32
ASP.NET
Uncle Seryozha, 2016-10-14 21:10:32

Validation mismatch on server and client. ASP.NET MVC?

Good day.
In my project (on ASP.NET MVC) I encountered the following problem: Validation on the server side and on the client side do not match for real numbers and dates. For example: on the client side, the number 12.7 is being validated, and after processing the request on the server, an error is returned, saying that there should be a dot, not a comma. If you put a dot, the form becomes invalid and the data cannot be sent.
Help solve the problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanostee, 2016-10-15
@andrewpianykh

Set the Russian culture on the server in the web.config file in system.web
You can also try adding the attribute to the date for the date
stackoverflow.com/questions/18548816/mvc-4-date-cu...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question