Hello, any recommendation on how to use ',' as decimal separator. Currently BE automatically converts 99,99 to 9999.00
5 Answer(s)
-
0
Hi @mirzanas, are you using Anuglar or jQuery version of ANZ?
You should format the number at client side (javascript) when displaying the value
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hey, i am using angular.
I am formatting number at client side as well i can see in browser network tab what a request contains correct value e.g. price: "99,99", but when BE receives it the value is 9999.00.
As I understood a default model binder do this trick. Do you have any recommendation on how to overcome this issue?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @mirzanas
Have you figured out a solution ?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi, @mirzanas, if your network request is sending "99,999" and your BE received 99999.00, this means that you are sending
stringin your network request where your BE is expecting it to bedecimal. Asp.Net model binding will covert thestringintodecimal(because your BE model is expecting it asdecimal) if the string is a numberMarkdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Ok, thanks.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)