Setting Globalization Using ASP.NET

If you are like Pebble who specialises in developing ASP.NET websites and apps you may well have come across a situation where you are rendering amounts on the screen but they are appearing using the default US dollar symbol.

We recently developed a website where we wanted to use the UK pound symbol. Here is the quick solution to this issue.

1. Open your web.config file

2. Look for the <system.web> tag

3. Add this line: <globalization uiCulture="en-GB" culture="en-GB" />

This will ensure your application uses the correct culture across the whole application.

This can also be overridden at the page level if required.

For more quick snippets head over to our coding section or if you feel the need to reach out to Pebble you can get in touch via our contact page.