467,081 Members | 990 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,081 developers. It's quick & easy.

Dumb question

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
  • viewed: 1447
Share:
1 Reply
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.

Similar topics

16 posts views Thread by squash@peoriadesignweb.com | last post: by
15 posts views Thread by Good Man | last post: by
3 posts views Thread by ed | last post: by
2 posts views Thread by TGF | last post: by
5 posts views Thread by Need Help | last post: by
4 posts views Thread by Stelrad Doulton | last post: by
6 posts views Thread by Robert Dufour | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.