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. Working with APP_LocalResources

Working with APP_LocalResources

Scheduled Pinned Locked Moved ASP.NET
designtoolslearning
6 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.
  • F Offline
    F Offline
    FJJCENTU
    wrote on last edited by
    #1

    I am tryng to work with a page which shows different languages, so I follow the steps: 1) Create a Web Form 2) Add a Label to the Form and add a value for the Text Property 3) Go to Design mode and in the Tools Menu click on Generate Local Resource. 4) Go to APP_localresources directory and rename the resx file adding the en-US language reference (webpage.aspx.en-US.resx). 5) Create a resource file for other language (webpage.aspx.es-MX.resx). 6) endly I tried some ways to get the page in different languages - change the default language in IE to es-MX - override the initialize method and change the UICulture to es-MX But After two days tryng to see the werform in Spanish-Mexican I am not able of getting I only se the label text in it`s original USA text. Could you please tell me where is my mistake because I don't find any article which does some different of what I do but for me it doesn`t work. Best Regards

    S 1 Reply Last reply
    0
    • F FJJCENTU

      I am tryng to work with a page which shows different languages, so I follow the steps: 1) Create a Web Form 2) Add a Label to the Form and add a value for the Text Property 3) Go to Design mode and in the Tools Menu click on Generate Local Resource. 4) Go to APP_localresources directory and rename the resx file adding the en-US language reference (webpage.aspx.en-US.resx). 5) Create a resource file for other language (webpage.aspx.es-MX.resx). 6) endly I tried some ways to get the page in different languages - change the default language in IE to es-MX - override the initialize method and change the UICulture to es-MX But After two days tryng to see the werform in Spanish-Mexican I am not able of getting I only se the label text in it`s original USA text. Could you please tell me where is my mistake because I don't find any article which does some different of what I do but for me it doesn`t work. Best Regards

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      Have a look about APP_localresources here, if it helps: Beginner's Guide to ASP.NET Application Folder[^]

      F 1 Reply Last reply
      0
      • S Sandeep Mewara

        Have a look about APP_localresources here, if it helps: Beginner's Guide to ASP.NET Application Folder[^]

        F Offline
        F Offline
        FJJCENTU
        wrote on last edited by
        #3

        Before I post my message I saw that article and I have done all the steps enclosed in it, but in my application it doesn`t work

        S 1 Reply Last reply
        0
        • F FJJCENTU

          Before I post my message I saw that article and I have done all the steps enclosed in it, but in my application it doesn`t work

          S Offline
          S Offline
          Sandeep Mewara
          wrote on last edited by
          #4

          Did you had a look at these: Resources and Localization in ASP.NET 2.0[^] ASP.NET Web Page Resources Overview[^] Just have a look at them in case not done till now.

          F 1 Reply Last reply
          0
          • S Sandeep Mewara

            Did you had a look at these: Resources and Localization in ASP.NET 2.0[^] ASP.NET Web Page Resources Overview[^] Just have a look at them in case not done till now.

            F Offline
            F Offline
            FJJCENTU
            wrote on last edited by
            #5

            Finally I found the problem, I was using local resources for a page and I had Resource files for various languages, but not a resource file by default for the page, so I had Default.aspx.en-US.resx but not Default.aspx.resx, in the moment in which I create such file it started to work. Regards to everyone

            S 1 Reply Last reply
            0
            • F FJJCENTU

              Finally I found the problem, I was using local resources for a page and I had Resource files for various languages, but not a resource file by default for the page, so I had Default.aspx.en-US.resx but not Default.aspx.resx, in the moment in which I create such file it started to work. Regards to everyone

              S Offline
              S Offline
              Sandeep Mewara
              wrote on last edited by
              #6

              :thumbsup:

              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