Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET regional settings

Reply
Thread Tools

ASP.NET regional settings

 
 
=?Utf-8?B?U3RlZmFuX0tJQw==?=
Guest
Posts: n/a
 
      02-09-2007
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

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      02-09-2007

"Stefan_KIC" <> wrote in message
news:7E9EF40A-682D-444C-9F6C-...
> 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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3RlZmFuX0tJQw==?=
Guest
Posts: n/a
 
      02-09-2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting date format, regional settings for ASP.NET =?Utf-8?B?RGF2aWQgTGVlIEFV?= ASP .Net 0 06-15-2004 02:53 AM
How can i get the date formatted according to the regional settings made at the operating system level Karunakararao ASP .Net 0 05-11-2004 09:51 AM
Where does DateFormat.ShortDatePattern and 'Regional Settings/Date tab' Phil ASP .Net 0 11-06-2003 09:25 AM
problem with regional & language settings Lachlan James ASP .Net 1 08-05-2003 05:43 AM
Regional settings René de Leeuw ASP .Net 2 07-02-2003 02:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57