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. bi-lingual implementation in asp.net

bi-lingual implementation in asp.net

Scheduled Pinned Locked Moved ASP.NET
helpquestioncsharpasp-netlearning
2 Posts 2 Posters 1 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.
  • H Offline
    H Offline
    Harikrk
    wrote on last edited by
    #1

    I was working on a bi-lingual asp.net site.. i have a label(lblmessage) to show messages. I have 2 messages to be shown there( if the process is successfull, the a sucess message should be shown else error message should be shown. I have added two string values in resx files success and failure. I have two languages resource files(default.aspx.resx and default.aspx.fr.resx) I have given the values for success and failure in both files. During run time how can i show the message from the resource files? i have the current selected language in session object as session["language"]. plz help thanks and regards Hari

    L 1 Reply Last reply
    0
    • H Harikrk

      I was working on a bi-lingual asp.net site.. i have a label(lblmessage) to show messages. I have 2 messages to be shown there( if the process is successfull, the a sucess message should be shown else error message should be shown. I have added two string values in resx files success and failure. I have two languages resource files(default.aspx.resx and default.aspx.fr.resx) I have given the values for success and failure in both files. During run time how can i show the message from the resource files? i have the current selected language in session object as session["language"]. plz help thanks and regards Hari

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Read the MSDN documentation. Session["language"] will not cut it. Also you need to know the difference between a global and a local resource, as they as handled differently. From what I can see, you are using local resources (they are bound to a page or control). There are 2 ways to do it: 1. Use VS to generate it (all the stuff is added). 2. Use Resource expressions. Note: Global resources you can access via Resources.ResourceName.Property.

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 3 out now

      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