Can anybody tell me why the following conversion of a decimal to a string is displayed differently on my development machine (W2K Pro) and the Terminal Server it is to run from (2003 Server) ? I am taking a decimal value from a datatable and inserting it into a text box, like:
TextBox1.Text = dt.Rows(0).Item("Value"
.ToString
In W2K, the text box displays "1", but in 2003 Server it displays "1.00". I have checked the regional settings for both machines and they are identical. The 2003 Server displays a zero for each decimal place, whereas W2K removes the unnecessary zeros.
Any ideas appreciated !
TextBox1.Text = dt.Rows(0).Item("Value"
In W2K, the text box displays "1", but in 2003 Server it displays "1.00". I have checked the regional settings for both machines and they are identical. The 2003 Server displays a zero for each decimal place, whereas W2K removes the unnecessary zeros.
Any ideas appreciated !