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. how to store culture info into a cookie

how to store culture info into a cookie

Scheduled Pinned Locked Moved ASP.NET
tutorial
2 Posts 2 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

    how to store culture info into a cookie for eg Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")             LoadStrings(Thread.CurrentThread.CurrentCulture) i want to store the above said culture info in cookie tanx

    N 1 Reply Last reply
    0
    • A anbusenthil

      how to store culture info into a cookie for eg Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")             LoadStrings(Thread.CurrentThread.CurrentCulture) i want to store the above said culture info in cookie tanx

      N Offline
      N Offline
      Naji El Kotob
      wrote on last edited by
      #2

      Hi, If I understood you right, you are working on multi-language website, and you need to save the lang of user based on his/her selection. To use cookie, simply go to this website http://msdn.microsoft.com/en-us/library/system.web.httpcookie.aspx[^] but to work effectively you need to load the value from a cookie e.g. en-US at session startup (use global.asax) if there is no cookie, assign a default value, and use session and "overrides sub InitializeCulture" event to assign lang to Thread.CurrentThread.CurrentUICulture/CurrentCulture if session expired, reload the value from cookie again... hope this will help you and others. regards, NajiCo

      NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice... http://www.facebook.com/group.php?gid=5932660937[^]

      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