473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

ASP.NET regional settings

Hello everybody,

I have a question about the ASP.NET registry account. I'm writing a web
application that requires the server's ASP.NET user account to have its
decimal separator symbol set to a period. (because a 3rd party component
requires so) I have also created a small executable that is able to set those
regional settings as required. The downside is that the windows accounts are
all encrypted in the registry, so I do not know which one is the ASP.NET
account. Hence, *ALL* accounts are currently set with the required regional
settings. Is there any way to separate the ASP.NET account from the rest so
they can be left as they are?

P.S. I don't think the following information is of any importance in this
case, but the program is running on a Win XP machine with ASP.NET 2.0

Any help would be much appreciated!

With kind regards,

Stefan A.

programmer

Feb 9 '07 #1
2 1647

"Stefan_KIC" <St********@discussions.microsoft.comwrote in message
news:7E**********************************@microsof t.com...
Hello everybody,

I have a question about the ASP.NET registry account. I'm writing a web
application that requires the server's ASP.NET user account to have its
decimal separator symbol set to a period. (because a 3rd party component
requires so) I have also created a small executable that is able to set
those
What is the purpose of it? Do you need to pass a number in certain format to
your component, or format its values?

There is System.Globalization.NumberFormatInfo that may you help
Feb 9 '07 #2
First of all, thanks for helping!

The purpose:
Basically, I have a project that converts a C# class to graphical
coordinates for a plugin. This plugin expects the coordinates to be written
using a period as decimal separator. Naturally, this works fine if the server
is a U.S or U.K server, but if it is not, the graphics will be drawn
incorrectly.

Your second question:
I need to pass the doubles in a certain format to the plugin (period
separated).

The System.Globalization namespace could indeed be the solution to my
problem. If I do a .ToString() on a double it uses the ASP.NET registry
account's settings, but if I can somehow tell the compiler to use
InvariantCulture it may be solved. I will certainly look this up and try it
out!

Thank you very much!
Stefan

"Alexey Smirnov" wrote:
>
What is the purpose of it? Do you need to pass a number in certain format to
your component, or format its values?

There is System.Globalization.NumberFormatInfo that may you help
Feb 9 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Grumfish | last post by:
Is there a way to tell Java what localization to use so applications and the compiler doesn't default to the system's setting? I'm using a computer with Windows 2000 with a regional setting of...
1
by: nerman | last post by:
Hello I have a problem with the regional settings. I have set the regional settings of the web server to display the numbers in this format 123.456,78 But when I open my web site all number are...
4
by: Jonathan | last post by:
Dear All, I am trying to set a webserver to use French regional settings for testing ASP pages. According to http://support.microsoft.com/kb/q306044, for IIS5, this is a matter of changing...
2
by: Bob Dydd | last post by:
Hi Everbody Question Changing the regional settings ie. from UK to US AUS etc, Access retains the original currency format that the application was created in. So if an mdb that is written...
3
by: Emmanuel | last post by:
I want to know the decimal separator and the group separator character that the user has set in Regional Settings in Control Panel. I tryied to use...
1
by: John | last post by:
Hi, The following behavior when using J# vs. C# is really bothering me. When I have the regional settings on my workstation set to a non-US settings (eg: Danish); it seems that J# disregards...
12
by: magister | last post by:
Hello, I know I can set the Culture to what I want, but shouldn't the current culture be taken from the regional settings on the web server's control panel!!! Mine is set to "united kingdom"...
7
by: Fred Flintstone | last post by:
I'm writing a VB.Net windows forms application. This line of code: Personal.EffectiveDate = GridRow2.Cells("New Value").Value.ToString.Trim Fails with this error: Cast from string...
16
by: Colmag | last post by:
I've written an application with vb.net 2003 (framework 1.1) which automates a 3rd party viewing/printing application (via an activex control). I've released several versions over the last year...
1
by: Luis Lanuza | last post by:
Hi all, I can't get Visual Studio 2003 to recognize my WindowsXP SP2 regional settings. For ex: On Control Panel / Regional Settings / Regional Options Tab, my standadrs and formats corresponds...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.