Para
Para

Reputation: 2082

ASP.NET modify resource values from .resx files at runtime

My current requirements for the application that I am working on are that the client should be able to modify the texts used in the interface from a screen within the application itself. These are of course saved in resx files.
Is there any way to do this?
Modify the values of the resources at runtime?
What would be the easiest way?
Thank you in advance

Edit: resx files are already implemented and there are a lot of keys used all throughout the application

Upvotes: 0

Views: 1222

Answers (2)

lnu
lnu

Reputation: 1414

You could write your own provider using a database as backend. This way your code doesn't change and you'll have the possibility to update text directly.

Upvotes: 1

Jakub Konecki
Jakub Konecki

Reputation: 46008

If the requirement is to edit label texts during runtime than I would suggest that you don't use RESX files, as them are ment to be static, but rather use database.

Upvotes: 2

Related Questions