Hi All,
I want to develop a Localization application, in which i had 2 options namely English and Tamil. If I click English the whole application should be displayed in English. And if i clicked Tamil, the Whole application must be displayed in Tamil. I have used 2 resource files one for english and other for tamil... And my code is as follows:
Protected Overrides Sub InitializeCulture()
If Request("l") Is Nothing Then
UICulture =
"en"
ElseUICulture = Request("l")
End IfMyBase.InitializeCulture()
End Sub
In Dropdown change event, the code is:
Protected Sub drpLanguage_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles drpLanguage.SelectedIndexChanged
lang = drpLanguage.SelectedValue
If (lang = "en-GB") Then
Session(
"CurrentLanguage") = "en-GB"
UICulture =
"en"Server.Transfer("~/Default.aspx?l=en")
Else
Session(
"CurrentLanguage") = "ta-IN"
UICulture =
"ta" 'Request("l")Server.Transfer("~/Default.aspx?l=ta")
End If
MyBase.InitializeCulture()
End Sub
This code is working for a single page alone... Plz Say me how to perform to multiple pages in an application... Its Urgent...