I've followed this video tutorial which sets up globalisation on a .net application. All works well apart from the fact that when the user selects french (for example) it'll go back to English the next page they visit.
Obviously their selection needs to be added to a cookie or something, but i've been looking at other tutorials to try that but because they're on something completely irrelevant I don't get anywhere. I just wish that tutorial I followed went into more detail. Can anyone help?
Code below:
And there's a dropdownlist with the name "Language1" which the user uses to select their language.
Obviously their selection needs to be added to a cookie or something, but i've been looking at other tutorials to try that but because they're on something completely irrelevant I don't get anywhere. I just wish that tutorial I followed went into more detail. Can anyone help?
Code below:
Code:
Protected Overrides Sub InitializeCulture()
Dim lang As String = Request("Language1")
If lang IsNot Nothing Or lang <> "" Then
Thread.CurrentThread.CurrentUICulture = New CultureInfo(lang)
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(lang)
End If
End Sub
And there's a dropdownlist with the name "Language1" which the user uses to select their language.