By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,939 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,939 IT Pros & Developers. It's quick & easy.

Dumb question

P: n/a
My web site needs to be localized, so did some googling and found out how to
do a page, So I have page Default.aspx that has controls that display the
localized text, and a threadcurrentculture set to say fr-CA. How do I pass
the value for the variable used to the following pages so that they too will
be localized in the same language as the default page?

In Winforms I would have declared a global variable and on a form load event
do a lokkup on that, but how do you do smething similar in asp.
Code snippet would be appreciated.

Thanks for ant help,
Bob
Apr 22 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
If you set the browser language, this will happen on every localized page
without having to do anything.

If you are explicitly setting langauge, you can store it in session or
cookies. You then grab that value on every page and set the current culture
of the thread to that value.

Some of the code samples here show some of the info you will need:
http://quickstarts.asp.net/QuickStar...n/default.aspx

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*********************************************
Think outside the box!
*********************************************
"rdufour" <bd*****@sgiims.comwrote in message
news:uJ*************@TK2MSFTNGP04.phx.gbl...
My web site needs to be localized, so did some googling and found out how
to do a page, So I have page Default.aspx that has controls that display
the localized text, and a threadcurrentculture set to say fr-CA. How do I
pass the value for the variable used to the following pages so that they
too will be localized in the same language as the default page?

In Winforms I would have declared a global variable and on a form load
event do a lokkup on that, but how do you do smething similar in asp.
Code snippet would be appreciated.

Thanks for ant help,
Bob

Apr 23 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.