locked
Are .resx files still used in 2.0? RRS feed

  • Question

  • User1289100528 posted

    I'm looking at converting some apps that were previously using .resx files to contain string constants that should be able to be modified at runtime. However, most of what I've read leads me to believe .resx files are no longer being used this way. I'm getting the impression that they should be converted to .resources files and loaded into the site. Any clarification on this?

     

    At any rate, the project currently will not build when attempting to use the System.Resources.ResourceManager to access the resx file in App_GlobalResources.

    Friday, March 10, 2006 11:22 AM

All replies

  • User-2041805088 posted

    .resx files are still used. As a matter of fact, there is a new way of accessing them that is more strongly typed:

    Resources.<FileName>.Resource

    If the file was named Resource.resx and the resource Title, then:

    Resources.Resource.Title

    HTH,
    Ryan

    Friday, March 10, 2006 11:43 AM
  • User1183903743 posted

    apps that were previously using .resx files to contain string constants that should be able to be modified at runtime.
    Resx are just design time xml representation of the compiled .resources

    So you could not modify them at runtime NOT BEFORE before and NOT NOW.

    Friday, March 10, 2006 3:39 PM