ASP.NET 在运行时修改 .resx 文件中的资源值
我当前对正在开发的应用程序的要求是,客户端应该能够从应用程序本身的屏幕修改界面中使用的文本。 这些当然保存在 resx 文件中。
有什么办法可以做到这一点吗?
在运行时修改资源的值?
最简单的方法是什么?
预先感谢您
编辑:resx 文件已经实现,并且在整个应用程序中使用了很多键
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果需要在运行时编辑标签文本,我建议您不要使用 RESX 文件,因为它们是静态的,而是使用数据库。
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.
您可以使用数据库作为后端编写自己的提供程序。这样您的代码就不会更改,并且您可以直接更新文本。
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.