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. conditional inclusion of a namespace

conditional inclusion of a namespace

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestionworkspace
3 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.
  • S Offline
    S Offline
    Suman Singh
    wrote on last edited by
    #1

    Hi all, I m working on a multilanguage project in ASP.net C# v2.0. I created a namespace "language.eng" and defined some text string within it. Now, I want to include it after checking the configuration is set to language english. Let say, if(Session["lang"].tostring() == "english") then I want to include this namespace so that I can use the strings value... Same, if(Session["lang"].tostring() == "spanish") then I want to include "language.spenish" namespace. How can I do this. Please help. Thanks in Advance. Suman Singh

    M 1 Reply Last reply
    0
    • S Suman Singh

      Hi all, I m working on a multilanguage project in ASP.net C# v2.0. I created a namespace "language.eng" and defined some text string within it. Now, I want to include it after checking the configuration is set to language english. Let say, if(Session["lang"].tostring() == "english") then I want to include this namespace so that I can use the strings value... Same, if(Session["lang"].tostring() == "spanish") then I want to include "language.spenish" namespace. How can I do this. Please help. Thanks in Advance. Suman Singh

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      I'm curious that why you don't simply use the resource files to contain the language-specific strings so that it can be automatically loaded when you determine the culture. Localizing ASP.NET Web Pages Using Resources [^]

      S 1 Reply Last reply
      0
      • M minhpc_bk

        I'm curious that why you don't simply use the resource files to contain the language-specific strings so that it can be automatically loaded when you determine the culture. Localizing ASP.NET Web Pages Using Resources [^]

        S Offline
        S Offline
        Suman Singh
        wrote on last edited by
        #3

        Hello minhpc_bk, Thanks for your answer. Actually, I wanted to make it admin driven.. or it may be that there will be a dropdown in user section to choose a language and user can change the language anytime... ex : http://www.shareit.com/101343-1.html[^] Can you please help. Suman Singh

        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