locked
Access resources.resx in VS2010 RRS feed

  • Question

  • User-2102369823 posted

    Hello,

    How can i access directly the variables that i have in my resource file (App_LocalResources/resource.resx) in VS2010 and FW4.0 ?

    Example: I have a string saved like that:
    RETURN_URL = www.example.com


    Thanks

    Saturday, May 12, 2012 1:34 PM

Answers

  • User-2102369823 posted

    Resolved.

    In VS2010 you must use another folfer "App_GlobalResources".

    Thanks any way

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 16, 2012 7:31 AM

All replies

  • User878636500 posted

    You can access to the ressource in your code side with : resource.PROPERTY

    So : resource.RETURN_URL

    VS scaffold your ressources.resx in browsable class.

    Tuesday, May 15, 2012 10:09 AM
  • User-2102369823 posted

    Hello giop,

    i cannot access directly to: resource.RETURN_URL
    It tell me that "resoure" is not member of "resources"

    What do you mean with "your ressources.resx in browsable class"?

    Thanks.

    Tuesday, May 15, 2012 11:45 AM
  • User-2102369823 posted

    Resolved.

    In VS2010 you must use another folfer "App_GlobalResources".

    Thanks any way

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 16, 2012 7:31 AM