473,396 Members | 1,804 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,396 software developers and data experts.

asp.net UICulture

I have a question about asp.net.
I'm trying to create a multilingual site with resources and stuff, it
works ok, but what is the difference between
using:

UICulture = "en" or using Thread.CurrentThread.CurrentUICulture = new
CultureInfo("en"); ?!
Both work well. (i have a base page where i override
InitializeCulture)
(i only need language, no currency, that's why i only use "en" and not
"en-US")

Feb 12 '07 #1
1 1811
asp.net is thread agile. this means to changes threads as it processes
the request. the thread on form load may not be the same thread on
button click processing. this means if you set thread properties, you
need to set it on the start of every page lifecycle method. if you tell
asp.net, it will set the thread property before each callback.

-- bruce (sqlwork.com)

Alex wrote:
I have a question about asp.net.
I'm trying to create a multilingual site with resources and stuff, it
works ok, but what is the difference between
using:

UICulture = "en" or using Thread.CurrentThread.CurrentUICulture = new
CultureInfo("en"); ?!
Both work well. (i have a base page where i override
InitializeCulture)
(i only need language, no currency, that's why i only use "en" and not
"en-US")
Feb 12 '07 #2

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

Similar topics

5
by: Samuel | last post by:
Hi, I am running into a problem of mixing UICulture = auto and allowing users to select culture using a dropdown list. I am detecting a querystring, "setlang", and when found, setting the...
4
by: Henke | last post by:
Hi I'm building an globalized application (english, swedish and russian languages) and have a few questions: 1. In order to see the russian characters correct I have to set the requestEncoding...
1
by: Roland Müller | last post by:
Hello, we have converted our project to framework 2.0 but we have still some problems, one of it with setting the UICulture for a aspx-site. Example: there is a simple aspx test site in a...
4
by: fabuwardeh | last post by:
Hi Everybody, how i can localize the master page in asp.net 2 is there are away to set the master page culture in the code i have already use InitializeCulture in my base page class but i am not...
1
by: Klaus Jensen | last post by:
Hi This question relates to ASP.Net 1.1 - NOT 2.0 I want to set a site-wide UIculture from code. I know it can be set in web.config, but can it be set in code? For instance in...
6
by: bojan.pikl | last post by:
Hi, I am making a calendar. It is costum made and I would like to have the ability to choose the first day (Monday or Sunday). I know for the firstDayOfWeek, but I can't change it. What should I do?
4
by: schaf | last post by:
Hi ! I have determined, that System.Threading.Thread.CurrentThread.CurrentUICulture is en-US if I choose english as language for menus and dialogues in a MUI WindowsXP. If i set the LOC flag on...
1
by: Alex | last post by:
I have a question about asp.net. I'm trying to create a multilingual site with resources and stuff, it works ok, but what is the difference between using: UICulture = "en" or using...
0
by: nickmarkham | last post by:
Hi, I have 'localized' the button images in my web app by using an HTTP handler file for each image so the correct langauge imagebutton can be loaded depending on the users language. In the...
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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,...

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.