Is this the direction you were thinking?
Setting the current culture to Portuguese from Brazil:
Thread.CurrentThread.CurrentCulture = new CultureInfo( "pt-BR", false );
For more information, check out:
Understanding Globalization and Localization in ASP.NET 2.0
Edit:
Based on your comment below, it seems you have a clearer idea of what you want.
To create a link using LinkButton in your .aspx page:
<asp:LinkButton id="linkButton1"
runat="server"
OnCommand="LinkButton1_Click"
CommandArgument="pt-BR">Click Me for Portuguese from Brazil
</asp:LinkButton>
Then, 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"))
{
// Your logic for Portuguese from Brazil goes here... Show or hide DIV...
}
}
If you prefer to use Session for storing the value:
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"))
{
// Your logic for Portuguese from Brazil goes here... Show or hide DIV...
}
}