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 145371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:24:42+00:00 2026-05-11T08:24:42+00:00

I am currently moving my website from an existing web server to a new

  • 0

I am currently moving my website from an existing web server to a new machine.

The new machine is WIN Sever 2003 running IIS6. The site is using ASP.Net 2.

I added the following to the <system.web> section in my machine.config file to get the website and any future sites to use South African regional settings instead of the default US settings.

<globalization culture='en-ZA' uiCulture='en-ZA'/> 

This has mostly worked – the currency symbols have changed from $ to R as they should, but I have a column in a gridview (a bound field – the DB type is money) which is set as follows:

DataFormatString='{0:c}’

[Edit] – have tried this with {0:C} as well as per Richard’s suggestion below: still no luck

This is still returning 10000.0000 instead of R 10,000.00 as it was on my old server.

Any ideas as to how to fix this?

Thanks!

[Edit] – I’m beginning to think that this has little to do with the actual culture settings.

I have another form where it works fine:

<ItemTemplate>     <asp:Label ID='Label2' runat='server' Text='<%# Bind('Balance', '{0:c}') %>'></asp:Label> </ItemTemplate> 

The form that doesn’t work uses the gridview without a template:

<asp:BoundField DataField='Amount' HeaderText='Amount' SortExpression='Amount' DataFormatString='{0:C}' >     <ItemStyle CssClass='al-r' /> </asp:BoundField> 
  • 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. 2026-05-11T08:24:43+00:00Added an answer on May 11, 2026 at 8:24 am

    thanks for your help with this.

    I solved this problem by installing Service pack 2 of ASP.Net 2.0 – after the reboot, the grid worked fine with {0:C}.

    This problem would have fixed itself in the production environment as it will be set to update automatically. Currently we have the new server on the local office network and our firewall seems to be restricting the updates.

    Lesson learned: always make sure that all your server software is up to date!

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

Sidebar

Related Questions

we are currently in the process of moving a coldfusion web site from server
I'm currently moving from my development server to an Apache web production server. I've
I'm currently moving a website to a new server, whilst doing so i've noticed
I am currently moving a product from SQL Server to Oracle. I am semi-familiar
I am currently moving an ASP.NET web-project from an IIS 6 to a IIS
I have created a new website for a client, (joomla) which is currently running
I'm in the process of moving SQL server to a separate machine. Currently we
I am currently moving code from my app_code folder to a class library. I
I am currently moving into the web-hosting league. I have to far been adding
So I'm currently working on rebuilding an existing website that is used internally at

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.