For my web application I want the prices to have a comma as decimal separator on all my pages of my web application. I managed this by adding these line of codes in the program.cs:
CultureInfo.CurrentCulture = new CultureInfo("nl-NL");
CultureInfo.CurrentUICulture = new CultureInfo("nl-NL");
And when I run my web application, I see the comma as decimal separator. But, when I navigate to a different page, also having prices, the decimal separator has changed into a dot. And when I navigate back to the page where the comma was shown as decimal separator, it now shows a dot as decimal separator as well.
It looks like the comma as decimal separator only works the first time. After that, it goes back to the dot. I cannot figure out why this is happening or how to fix this. Can someone perhaps explain to me what the cause of my issue could be?