Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / October 2004

Tip: Looking for answers? Try searching our database.

WebService, DataSet, different regional settings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andreas Pircher - 13 Oct 2004 17:00 GMT
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.

Signature

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

Andreas Pircher - 18 Oct 2004 09:29 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.