473,507 Members | 5,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET Return Server Native Language

Hey,

I was wondering if there is a command to return the language that the
server is set up in, usering ASP.NET v1.1

Because if you put Label1.Text = DateTime.Now.ToLongDateString and the
server is in german it will return: Donnerstag, 15. Juni 2006
But if its in english then it will return: Tuesday, 15. June 2006

But i was wondering if there was a command to return what langage the
server is in. e.g. Engllish, French, German.
Dessip

Jun 15 '06 #1
3 1043
You don't need the language. What you need is the Current Culture.

CultureInfo.CurrentCulture.Name

You need to import the .Net Framework's System.Globalization class.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Dessip" <De****@gmail.com> wrote in message
news:11*********************@g10g2000cwb.googlegro ups.com...
Hey,

I was wondering if there is a command to return the language that the
server is set up in, usering ASP.NET v1.1

Because if you put Label1.Text = DateTime.Now.ToLongDateString and the
server is in german it will return: Donnerstag, 15. Juni 2006
But if its in english then it will return: Tuesday, 15. June 2006

But i was wondering if there was a command to return what langage the
server is in. e.g. Engllish, French, German.
Dessip

Jun 15 '06 #2
Ahh ok, so i was looking for the wrong thing :(
Thank you for your help :)

Juan T. Llibre wrote:
You don't need the language. What you need is the Current Culture.

CultureInfo.CurrentCulture.Name

You need to import the .Net Framework's System.Globalization class.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Dessip" <De****@gmail.com> wrote in message
news:11*********************@g10g2000cwb.googlegro ups.com...
Hey,

I was wondering if there is a command to return the language that the
server is set up in, usering ASP.NET v1.1

Because if you put Label1.Text = DateTime.Now.ToLongDateString and the
server is in german it will return: Donnerstag, 15. Juni 2006
But if its in english then it will return: Tuesday, 15. June 2006

But i was wondering if there was a command to return what langage the
server is in. e.g. Engllish, French, German.
Dessip


Jun 16 '06 #3
Sorry about this, but i have hit another problem

But i was wondering where does it gather the information from. Because
i thought that it was from Control Panel>Regional Options but they are
set to English(United Kingdom) and for the development im hosting the
IIS locally, but for CultureInfo.CurrentCulture.EnglishName Its
returning German(Switzerland) so i guess that its not gathering the
data from there. So do you know where it is gathering it from.

Thanks In Advance
Dessip
Dessip wrote:
Ahh ok, so i was looking for the wrong thing :(
Thank you for your help :)

Juan T. Llibre wrote:
You don't need the language. What you need is the Current Culture.

CultureInfo.CurrentCulture.Name

You need to import the .Net Framework's System.Globalization class.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Dessip" <De****@gmail.com> wrote in message
news:11*********************@g10g2000cwb.googlegro ups.com...
Hey,

I was wondering if there is a command to return the language that the
server is set up in, usering ASP.NET v1.1

Because if you put Label1.Text = DateTime.Now.ToLongDateString and the
server is in german it will return: Donnerstag, 15. Juni 2006
But if its in english then it will return: Tuesday, 15. June 2006

But i was wondering if there was a command to return what langage the
server is in. e.g. Engllish, French, German.
Dessip


Jun 16 '06 #4

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

Similar topics

0
2674
by: Juan Carlos CORUÑA | last post by:
Hello all, I have developed an automation server using Mark's win32 extensions and I must return a IStream COM object from one method of the automation server. Here is an extract of my code:...
2
7780
by: Robert Gordon | last post by:
I now realize I probably should have tried posting this on the IIS board first.. I am running OWA 2003 Server as Front End server to my Exchange 2000 native domain. The FE server is secured by...
4
13804
by: Guinness Mann | last post by:
I'm running SQL Server 2K (sp3a) and when I run the following query (in query analyzer): SELECT id, LEN(ForeignWord) as Length, ForeignWord FROM Words WHERE Language ='Thai' and...
4
5636
by: Andreas Lauffer | last post by:
Can anyone tell me advantages / disadvantages of DataDirect Server Wire ODBC-driver? Any experiences? What about redistribution? Andreas Lauffer, easySoft. GmbH, Germany
4
1343
by: batista | last post by:
Hello to all, I want to know that wat's the future of vc++.net? I mean is it going to remain there or not, and if does then wud there be big changes to it or they'll stick with the current one?...
1
2503
by: Matthew Louden | last post by:
Personally, I am totally confused with the following control terms and usage and advantages of each one in ASP.NET web application. Here's what I know so far.. 1. HTML Client Control: understood...
46
3787
by: Steven T. Hatton | last post by:
I just read §2.11.3 of D&E, and I have to say, I'm quite puzzled by what it says. http://java.sun.com/docs/books/tutorial/essential/concurrency/syncrgb.html <shrug> -- NOUN:1. Money or...
2
1338
by: Joe | last post by:
I am trying to get a good understanding of these concepts and how they apply to code and classes (possibly different). As well as MSIL and Native Code (x86 assembly). To facilitate discussion...
1
2335
by: bimowidhi | last post by:
Hi, I'm a newbie here, and also in PHP. Sorry for my bad English. I've walked around to find the answer of my problem, but I still can't get it. I develop PHP 5.2.5 Application, using SQL...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7109
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
7313
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,...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
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
5619
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,...
1
5039
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...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.