Web应用程序中的文本管理 [英] Text management in a web application

查看:74
本文介绍了Web应用程序中的文本管理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我已经开发ASP.Net了几年了,每次(非常频繁地)编写一个新的asp.net应用程序时,我都需要确保在该应用程序中使用的所有文本(标签,按钮等).必须由管理员管理和更新.为此,我实现了一个自己的简单组件,该组件将数据更新为应用程序数据库中的Strings表.此方法对我有用,但是将每个元素都花在了DataUpdatingComponent上有点麻烦.您如何处理这个问题?您知道处理此问题的任何文章或博客条目吗?

Hy, I developing ASP.Net for some years now and every time (very often) I code a new asp.net application I need to make sure that all the texts (labels, buttons, … ) I use in the Application must be managed and updated by an admin. Therefor I implemented a own simple component, which updates the data to a Strings table in the application database. This method works for me, but it is a bit painstaking each and every element to my DataUpdatingComponent. How are you handling this problem? Do you know any articles or blog entries handling this problem?

推荐答案

只要您的文本属于资源,就可以创建自定义资源提供程序或使用现有的提供程序.这是线程之前讨论过的地方.

As long as your texts belongs to resources you can create a custom resource provider or use already existing providers. Here is a thread where this is discussed before.

这篇关于Web应用程序中的文本管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆