Hi All
DateTime populaing based on regional settings In ASP.NET Application
Iam using this Code:
Thread.CurrentT hread.CurrentCu lture =
CultureInfo.Cre ateSpecificCult ure(HttpContext .Current.Reques t.UserLanguages[0]);
Thread.CurrentT hread.CurrentUI Culture = new
CultureInfo(Htt pContext.Curren t.Request.UserL anguages[0]);
Some Cultures disply the Format
When i am using Windows XP Mechine It's Giving Error Message Like this.
Culture name "zu" is not supported. Parameter name: name
These are the New Cultures for which the following error Message is thrown.
Culture name "zu" is not supported. Parameter name: name
Zulu - zu
Maltese
Xhosa xh
Welsh - cy-gb
Tswana -tn
Serbian sr-ba
serbian(Latin)- sr
sami,southern(s weaden)
sami,southern(N orway)
sami,Skolt - se-fi
sami,Notherm
Quechua(Peru)-qu-pe
Quechua(Peru)-qu-pe
Northenrn sotho -ns-za
Maori
Maltese - mt
Kyrgyz(cyrillic )
Croatian - hr-ba
Bosnian(Latin)
Thank You
Venu 4 1668
Venu,
Do you have a more complete sample, including the line of code which
actually throws the exception?
Chris.
"Karunakara rao" wrote: Hi All
DateTime populaing based on regional settings In ASP.NET Application
Iam using this Code: Thread.CurrentT hread.CurrentCu lture = CultureInfo.Cre ateSpecificCult ure(HttpContext .Current.Reques t.UserLanguages[0]);
Thread.CurrentT hread.CurrentUI Culture = new CultureInfo(Htt pContext.Curren t.Request.UserL anguages[0]);
Some Cultures disply the Format When i am using Windows XP Mechine It's Giving Error Message Like this. Culture name "zu" is not supported. Parameter name: name
These are the New Cultures for which the following error Message is thrown. Culture name "zu" is not supported. Parameter name: name Zulu - zu
Maltese Xhosa xh Welsh - cy-gb Tswana -tn Serbian sr-ba serbian(Latin)- sr sami,southern(s weaden) sami,southern(N orway) sami,Skolt - se-fi sami,Notherm Quechua(Peru)-qu-pe Quechua(Peru)-qu-pe Northenrn sotho -ns-za Maori Maltese - mt Kyrgyz(cyrillic ) Croatian - hr-ba Bosnian(Latin)
Thank You Venu
Hi Chris
I am usign ASP.NET Application
This Code only i written this.
Thread.CurrentT hread.CurrentCu lture
=CultureInfo.Cr eateSpecificCul ture(Request.Us erLanguages[0]);
Response.Write( System.DateTime .Today.ToShortD ateString());
Response.Write( CultureInfo.Cur rentCulture.Dat eTimeFormat.Sho rtDatePattern);
OutPut:
2004/10/12
yyyy/MM/dd
Some Regional optinal settings not supporting this Code
Like [zulu] is not supporting this code
It's giving this type of error : "Culture name zu is not supported.
Parameter name: name "
How can get the Date format without any error when ever i change the
[zulu] format
Thank You
Venu
"Chris Ballard" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:D1******** *************** ***********@mic rosoft.com... Venu,
Do you have a more complete sample, including the line of code which actually throws the exception?
Chris.
"Karunakara rao" wrote:
Hi All
DateTime populaing based on regional settings In ASP.NET Application
Iam using this Code: Thread.CurrentT hread.CurrentCu lture = CultureInfo.Cre ateSpecificCult ure(HttpContext .Current.Reques t.UserLanguages[0]);
Thread.CurrentT hread.CurrentUI Culture = new CultureInfo(Htt pContext.Curren t.Request.UserL anguages[0]);
Some Cultures disply the Format When i am using Windows XP Mechine It's Giving Error Message Like this. Culture name "zu" is not supported. Parameter name: name
These are the New Cultures for which the following error Message is thrown. Culture name "zu" is not supported. Parameter name: name Zulu - zu
Maltese Xhosa xh Welsh - cy-gb Tswana -tn Serbian sr-ba serbian(Latin)- sr sami,southern(s weaden) sami,southern(N orway) sami,Skolt - se-fi sami,Notherm Quechua(Peru)-qu-pe Quechua(Peru)-qu-pe Northenrn sotho -ns-za Maori Maltese - mt Kyrgyz(cyrillic ) Croatian - hr-ba Bosnian(Latin)
Thank You Venu
Hi Chris
I am usign ASP.NET Application
This Code only i written this.
Thread.CurrentT hread.CurrentCu lture
=CultureInfo.Cr eateSpecificCul ture(Request.Us erLanguages[0]);
Response.Write( System.DateTime .Today.ToShortD ateString());
Response.Write( CultureInfo.Cur rentCulture.Dat eTimeFormat.Sho rtDatePattern);
OutPut:
2004/10/12
yyyy/MM/dd
Some Regional optinal settings not supporting this Code
Like [zulu] is not supporting this code
It's giving this type of error : "Culture name zu is not supported.
Parameter name: name "
How can get the Date format without any error Please help me
Thank You
Venu
"Chris Ballard" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:D1******** *************** ***********@mic rosoft.com... Venu,
Do you have a more complete sample, including the line of code which actually throws the exception?
Chris.
"Karunakara rao" wrote:
Hi All
DateTime populaing based on regional settings In ASP.NET Application
Iam using this Code: Thread.CurrentT hread.CurrentCu lture = CultureInfo.Cre ateSpecificCult ure(HttpContext .Current.Reques t.UserLanguages[0]);
Thread.CurrentT hread.CurrentUI Culture = new CultureInfo(Htt pContext.Curren t.Request.UserL anguages[0]);
Some Cultures disply the Format When i am using Windows XP Mechine It's Giving Error Message Like this. Culture name "zu" is not supported. Parameter name: name
These are the New Cultures for which the following error Message is thrown. Culture name "zu" is not supported. Parameter name: name Zulu - zu
Maltese Xhosa xh Welsh - cy-gb Tswana -tn Serbian sr-ba serbian(Latin)- sr sami,southern(s weaden) sami,southern(N orway) sami,Skolt - se-fi sami,Notherm Quechua(Peru)-qu-pe Quechua(Peru)-qu-pe Northenrn sotho -ns-za Maori Maltese - mt Kyrgyz(cyrillic ) Croatian - hr-ba Bosnian(Latin)
Thank You Venu
Hi,
Are you sure the cultures you are looking for are actually available?
I tried the following code to get a list of available cultures and could not
see zulu in the list:
Response.Write( "<h3>Cultut e Codes</h3><p>");
CultureInfo[] cultList = CultureInfo.Get Cultures(Cultur eTypes.AllCultu res);
foreach(Culture Info cult in cultList)
{
Response.Write( string.Format(" <strong>Name: </strong>{0}, ",cult.Name ));
Response.Write( string.Format(" <strong>English Name:
</strong>{0}<br>" ,cult.EnglishNa me));
}
I dont know how you get hold of / install additional cultures if this is the
case.
HTH,
Chris.
"Karunakara rao" wrote: Hi Chris
I am usign ASP.NET Application
This Code only i written this. Thread.CurrentT hread.CurrentCu lture =CultureInfo.Cr eateSpecificCul ture(Request.Us erLanguages[0]);
Response.Write( System.DateTime .Today.ToShortD ateString());
Response.Write( CultureInfo.Cur rentCulture.Dat eTimeFormat.Sho rtDatePattern);
OutPut:
2004/10/12 yyyy/MM/dd
Some Regional optinal settings not supporting this Code
Like [zulu] is not supporting this code
It's giving this type of error : "Culture name zu is not supported. Parameter name: name "
How can get the Date format without any error Please help me
Thank You
Venu
"Chris Ballard" <Ch**********@d iscussions.micr osoft.com> wrote in message news:D1******** *************** ***********@mic rosoft.com... Venu,
Do you have a more complete sample, including the line of code which actually throws the exception?
Chris.
"Karunakara rao" wrote:
Hi All
DateTime populaing based on regional settings In ASP.NET Application
Iam using this Code: Thread.CurrentT hread.CurrentCu lture = CultureInfo.Cre ateSpecificCult ure(HttpContext .Current.Reques t.UserLanguages[0]);
Thread.CurrentT hread.CurrentUI Culture = new CultureInfo(Htt pContext.Curren t.Request.UserL anguages[0]);
Some Cultures disply the Format When i am using Windows XP Mechine It's Giving Error Message Like this. Culture name "zu" is not supported. Parameter name: name
These are the New Cultures for which the following error Message is thrown. Culture name "zu" is not supported. Parameter name: name Zulu - zu
Maltese Xhosa xh Welsh - cy-gb Tswana -tn Serbian sr-ba serbian(Latin)- sr sami,southern(s weaden) sami,southern(N orway) sami,Skolt - se-fi sami,Notherm Quechua(Peru)-qu-pe Quechua(Peru)-qu-pe Northenrn sotho -ns-za Maori Maltese - mt Kyrgyz(cyrillic ) Croatian - hr-ba Bosnian(Latin)
Thank You Venu This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mike420 |
last post by:
In the context of LATEX, some Pythonista asked what the big
successes of Lisp were. I think there were at least three *big*
successes.
a. orbitz.com web site uses Lisp for algorithms, etc.
b. Yahoo store was originally written in Lisp.
c. Emacs
The issues with these will probably come up, so I might as well
mention them myself (which will also make this a more balanced
|
by: jyoti |
last post by:
I have sucessfully able to copy file to a remote mechine
in our network by writing some asp code.
To make it sucessful, I had to keep destination folder in
remote mechine as "Share" for IUSER that my ASP code
running with.
I thought just giving the IUSER write permission on the
destination folder will allow to copy the file.
|
by: znappa |
last post by:
Hi.
Is there a way to get a list of supported cultures/languages for my
application.
By calling CultureInfo.GetCultures( CultureTypes.AllCultures )) I get the
whole list of supported cultures en .NET, I would like to get only those that
are supported for my application.
|
by: Thomas Kristiansen |
last post by:
Hi
IS there any way that I can use different cultures on Session level in one
single .NET Web application ??
CU Thomas
|
by: JezB |
last post by:
Could anyone tell me how to implement custom cultures in ASP.NET 2.0, such
that it automatically picks up application and page-level resources from the
Resources and LocalResources application repositories ?
| |
by: Karunakararao |
last post by:
Hi All
DateTime populaing based on regional settings In ASP.NET Application
Iam using this Code:
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(HttpContext.Current.Request.UserLanguages);
Thread.CurrentThread.CurrentUICulture = new
CultureInfo(HttpContext.Current.Request.UserLanguages);
|
by: Dave Harris |
last post by:
After switching cultures for a thread, the Menu shortcuts are still showing
the English word shift (as in Ctrl+Shift+M instead of Ctrl+Maj+M in French).
Running this on a French version of windows doesn't seem to act any better.
What ultimately controls the display of the menu shortcut string? .NET, the
OS, the keyboard attached? It doesn't seem to be the keyboard, other
applications like windows media play show Maj just fine in the...
|
by: GB |
last post by:
All,
I raised a problem a while ago about custom cultures in .NET and an
error whereby a "Resource lookup failed - infinite recursion detected"
exception was raised. Usually this was raised when the custom culture
was in use and the application domain was restarted.
Anyway, there was nothing on usenet about a solution but eventually I
came across one (well, MS provided it themselves when I challenged them
about this).
|
by: Nays |
last post by:
Hi All
I would be very grateful for any help with a problem I am having with
Custom Cultures.
I need to change the date format of a specific culture. I have created
a custom culture that should change the format. But when I run it, it
gives me an error.
My CustomCulture.cs looks like this:
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |