Dumb question

R

rdufour

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
 
C

Cowboy \(Gregory A. Beamer\)

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/QuickStartv20/aspnet/doc/localization/default.aspx

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

*********************************************
Think outside the box!
*********************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top