Chk the below code ...(multilingual setting in all pgs in a website)
-
my code is like tis tis code works on the same page only i want to set the language setting in all pages..... Imports System Imports System.Globalization Imports System.Threading Imports System.Resources Imports System.Reflection.AssemblyName Imports System.IO Partial Class Testmultiligual Inherits System.Web.UI.Page Private rm As ResourceManager Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load con.ConnectionString = ConfigurationManager.ConnectionStrings("ESCConnection").ConnectionString Dim ci As CultureInfo If Not Page.IsPostBack Then gridbind() Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US") 'get the culture info to set the language rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture LoadStrings(ci) Else 'get the culture info to set the language rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture LoadStrings(ci) End If End Sub Private Sub LoadStrings(ByVal ci As CultureInfo) HylEdit.Text = rm.GetString("Add", ci) &n
-
my code is like tis tis code works on the same page only i want to set the language setting in all pages..... Imports System Imports System.Globalization Imports System.Threading Imports System.Resources Imports System.Reflection.AssemblyName Imports System.IO Partial Class Testmultiligual Inherits System.Web.UI.Page Private rm As ResourceManager Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load con.ConnectionString = ConfigurationManager.ConnectionStrings("ESCConnection").ConnectionString Dim ci As CultureInfo If Not Page.IsPostBack Then gridbind() Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US") 'get the culture info to set the language rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture LoadStrings(ci) Else 'get the culture info to set the language rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture LoadStrings(ci) End If End Sub Private Sub LoadStrings(ByVal ci As CultureInfo) HylEdit.Text = rm.GetString("Add", ci) &n
-
my code is like tis tis code works on the same page only i want to set the language setting in all pages..... Imports System Imports System.Globalization Imports System.Threading Imports System.Resources Imports System.Reflection.AssemblyName Imports System.IO Partial Class Testmultiligual Inherits System.Web.UI.Page Private rm As ResourceManager Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load con.ConnectionString = ConfigurationManager.ConnectionStrings("ESCConnection").ConnectionString Dim ci As CultureInfo If Not Page.IsPostBack Then gridbind() Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US") 'get the culture info to set the language rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture LoadStrings(ci) Else 'get the culture info to set the language rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture LoadStrings(ci) End If End Sub Private Sub LoadStrings(ByVal ci As CultureInfo) HylEdit.Text = rm.GetString("Add", ci) &n
Please don't Cross Post. Read the forum guide line before post any new question.
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article