Something along this line?
Thread.CurrentThread.CurrentCulture = new CultureInfo( "pt-BR", false );
You can learn more about it here:
Globalization and localization demystified in ASP.NET 2.0
Edit:
Based on your comment bellow I now understand better what you want to do.
For the link part you can use LinkButton in your .aspx page as:
<asp:LinkButton id="linkButton1"
runat="server"
OnCommand="LinkButton1_Click"
CommandArgument="pt-BR">Click Me for Portuguese from Brazil
</asp:LinkButton>
Now in your code-behind file .cs:
private void LinkButton1_Click(object sender, System.EventArgs e)
{
string language = e.CommandArgument.ToString();
if(language.Equals("pt-BR"))
{
// Place your logic here for Portuguese-Brazil... Show or hide DIV...
}
}
If you wanna use Session, do this:
To store the value in Session:
private void LinkButton1_Click(object sender, System.EventArgs e)
{
string language = e.CommandArgument.ToString();
Session["lang"] = language;
}
To read the value from Session:
if (Session["lang"] != null)
{
if(Session["lang"].ToString().Equals("pt-BR"))
{
// Place your logic here for Portuguese-Brazil... Show or hide DIV...
}
}