HighTechTalks DotNet Forums  

WebService, DataSet, different regional settings

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss WebService, DataSet, different regional settings in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Andreas Pircher
 
Posts: n/a

Default WebService, DataSet, different regional settings - 10-13-2004 , 12:00 PM






Some time ago I´ve developed a smartclient. It sends some parameters
(item-id, amount) to a webservice-method that returns a dataset with
information from the database about a certain item. Everything worked well
until the client was first used in another country with other regional
settings.

The problem is the following:
The returned dataset contains a table that contains a column with a value of
type double. The WebService-Method puts 10.34 into the table and returns it -
clients in our region receive 10.34 clients with another decimal separator
receive 1034 . Of course this is because the dot is interpreted as
GroupSeparator.

How can I work around this. I know about using NumberFormatInfo and so on -
but here I have a - public ItemDataSet GetItemInfo(String ItemID, double
Amount) {...} - on the one side, and a - ItemDataSet tmp =
proxy.GetItemInfo(...) - on the other. The problem seems to be under the
hood.

--
luxbox.net, Andreas Pircher
http://www.luxbox.net

Reply With Quote
  #2  
Old   
Andreas Pircher
 
Posts: n/a

Default RE: WebService, DataSet, different regional settings - 10-18-2004 , 04:29 AM






Meanwhile I solved it myself. I set the culture of the threads that call
WebServices to the culture that the server uses - Now doubles in DataSets
arrive correctly.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.