I'm trying to get my application to detect what language the browser is set to, then make changes accordingly. So far I have:
Dim lang As String
lang = Request.QueryString("Language")
If lang = "it" then
Sidebar3.CssStyle = "sidebar h2"
this didn't work, so I played around with trying 'language' instead of 'Language', and 'it-IT" instead of "it" but nothing seems to work.
Then I thought that maybe the string 'lang' wasn't working as it should, so I tried a
nothing was written at all. As you can see in the first 'code' - I'm trying to change the CSS class of sidebar3 (an asp label) if the browser language is set to Italian. I've also tried doing a Select Case - this yields the same result, nothing.
I'm using IE8 and Chrome for testing, no variations on results for either.
Any help will be appreciated!