473,503 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Master Page UICulture asp.net 2

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
able to use it in the master page

please help me
thank you

May 24 '06 #1
4 6057
do it in web.config page

there is a video tutorial on that called Localization:

http://msdn.microsoft.com/asp.net/le...t/default.aspx
--

Bruno Alexandre
(a Portuguese in Křbenhanv, Danmark)
<fa********@gmail.com> escreveu na mensagem
news:11*********************@y43g2000cwc.googlegro ups.com...
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
able to use it in the master page

please help me
thank you

May 24 '06 #2
i tried to use a global resource, but i cant access the expression for
menu item ...
i create a local resource for my MasterPage, and use the
Application_BeginRequest in global.asax to change the culture there..
but it doesnt make effect :(

May 24 '06 #3
We have done the same thing, but we track what the user's culture
preference in their profile. After changing the culture, we require
the user to logout and back in again. The changes are picked up there.
Additionally, back sure in your InitializeCulture() override you do
the following:

Thread.CurrentThread.CurrentCulture = user.CultureName;
Thread.CurrentThread.CurrentUICulture = user.CultureName;

base.InitializeCulture();

May 25 '06 #4
Dav
I have the same problem when the page is not “embedded” in the master page,
The example on the following link
(http://msdn2.microsoft.com/en-us/library/bz9tc508.aspx) works fine, but if
it is “embedded” in the master page. The overwritten
InitializeCulture()method returns null for Request.Form["ListBox1"].

Any idea if the problem can be solved?
--
Regards,
Dav

Jul 10 '06 #5

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

Similar topics

5
2398
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
17
3134
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content...
3
5355
by: Laith Zraikat | last post by:
I need to set the page title for a content page in a master page, and do that using local reources so that I can have my page title in different languages. I can do that easily using global...
0
893
by: Muralidharan Ramakrishnan | last post by:
Hi, 1) I have a Asp.net 2.0 web form and with 2 labels in it. The first label is loaded from a local resource at App_LocalResourcesFolder. 2) The page has both culture and uiculture set to...
2
1442
by: shapper | last post by:
Hello, I have 2 pages: Page1.aspx and Page2.aspx. The two pages have common design parts but also not common design parts. Is it possible to create something like this: MasterPageA |
0
1634
by: shapper | last post by:
Hello, Sometime ago I followed an article (I believe MSDN) related with localization in Asp.Net 2.0. To make pages localization I create a class named Localization: 1 Public Class...
1
2033
by: shapper | last post by:
Hello, I am creating a web site with Nested Master pages. I also need to have a class where the culture is set. When the culture is changed by the user the page refreshes and the change takes...
0
1147
by: Anup Daware | last post by:
Hi All, I am facing this very weird issue, for every server request my control is redirecting to the login page and again coming back to the actual page from where the request was initiated when I...
1
3354
JustRun
by: JustRun | last post by:
Hi, I'm developing a web site using asp.net with C#, this site contains a MasterPage, UserControles, Pages. What i need to do is to make my site supports MultiLanguage, so I put a dropDownList...
0
7087
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
7281
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
7334
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
7462
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
5579
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
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
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 ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
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.