resx file odd behaviour RRS feed

  • Question

  • User-1022364398 posted

    I have the following HTML tags:

    <asp:Button ID="_btnCreateAdmin" runat="server" style="z-index: 1; left: 38px; top: 38px; position: absolute" meta:resourcekey="apa"/>

    <asp:Button ID="btnCreateAdmin_" runat="server" style="z-index: 1; left: 99px; top: 99px; position: absolute" meta:resourcekey="ko"/>

    And I have the following values in my resx file:

    apa.text                   resx file value (SV)

    ko.text                     test


    Using the resourcekey "apa" always retrievs the value "resx file value(SVS)" but nothing else works, "ko" does not work. If I change the value "apa" to "apa2" in the HTML as well as inte the resx file, neither will this work. It drives me mad, any ideas??

    Saturday, November 13, 2010 11:01 AM


  • User922132835 posted


    You need to force the site to recompile the satellite assemblies that the resx files generate. So after making the resx change , you need to 'touch' the web.config, so open it in notepad, type a space in somewhere, save and close. Then refresh the page in your browser and the site will recompile. You will then see the changes.

    Alternatively, stop debugging, right click on project in vs.net -> click 'clean' then re-run the project.



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, November 17, 2010 12:21 PM