Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Chk the below code ...(multilingual setting in all pgs in a website)

Chk the below code ...(multilingual setting in all pgs in a website)

Scheduled Pinned Locked Moved ASP.NET
design
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anbusenthil
    wrote on last edited by
    #1

    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

    S A 2 Replies Last reply
    0
    • A anbusenthil

      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

      S Offline
      S Offline
      saanj
      wrote on last edited by
      #2

      Was it required to create a new thread to post the same question?

      There is no foolish question, there is no final answer...

      1 Reply Last reply
      0
      • A anbusenthil

        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

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups