简体   繁体   English

如何在asp.net中动态地用其他文本替换某些文本

[英]How to replace some text with another text dynamically in asp.net

I have 2 clients for a web application(shoppiong portal) in which for one client i need to show products price as points where as for another client i need to show Rs in place of Point. 我有2个Web应用程序(shoppiong门户)客户端,其中一个客户端我需要显示产品价格为 ,而另一个客户端我需要显示Rs代替Point。

Is there any way to handle such condition dynamically in which i can replace some text with another in whole application based on client. 有没有办法动态处理这种情况,在这种情况下,我可以在整个基于客户端的应用程序中用某些文本替换另一种文本。

Thanks in advance 提前致谢

You can use Resources or Settings mechanism which serves as dictionary application wise. 您可以使用“资源”或“设置”机制作为明智的字典应用程序。 Using it you can replace whatever terminology you need, the only thing taken into consideration is that you need to use appropriate resource/settings file based on client. 使用它,您可以替换所需的任何术语,唯一要考虑的就是您需要根据客户端使用适当的资源/设置文件。

For More 更多

Resources 资源资源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM