473,569 Members | 2,604 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 InitializeCultu re 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 6060
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********@gma il.com> escreveu na mensagem
news:11******** *************@y 43g2000cwc.goog legroups.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 InitializeCultu re 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_Beg inRequest 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 InitializeCultu re() override you do
the following:

Thread.CurrentT hread.CurrentCu lture = user.CultureNam e;
Thread.CurrentT hread.CurrentUI Culture = user.CultureNam e;

base.Initialize Culture();

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
InitializeCultu re()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
2406
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 web part page? Does it take place at the page level? ...or the content area level? 3. Where is the Web Part Manager instantiated? ...in the...
17
3141
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 pages? Kinda sorta a critical point no? Am I missing something? Rob. P.S. the day I find a book that actually is useful rather than just a
3
5372
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 resources by explicitly setting the value of the Page, but I want to use local resources as a standard. Thank you.
0
896
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 "auto" . I have localised one language ta-IN apart from en-US (base language)
2
1448
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
1636
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 _Localization 2 Inherits Page 3
1
2038
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 effect. I saw this approach, I think, on a MSDN web site or blog: Config.vb Class where culture is set from profile value
0
1153
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 set my custom Remember be cookie on the login page. Following are the details: 1. Authentication mode is ‘Forms’ 2. This issue is reproducible...
1
3366
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 in my MasterPage, But the language doesn't change when I switch between them, Here is my code (Only pages that inherit from MasterPage): ...
0
7700
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
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...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6284
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
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...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
938
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.