使用C#在asp.net的其他页面中控制标签

时间:2021-04-05 20:54:14

i want ask about control label or link

我想问一下控制标签或链接

i have label in home page and I want change this label content from admin page

我在主页上有标签,我想从管理页面更改此标签内容

how to control and change it?

如何控制和改变它?

3 个解决方案

#1


you want a sort of content management system, try saving this label in some datasource (xml or database) and then use it where required.

你想要一种内容管理系统,尝试在一些数据源(xml或数据库)中保存此标签,然后在需要时使用它。

#2


More details would be good. You want to be able to have an admin page where you have an input form that allows you to set content on the home page? If so, there are a few ways to do that. One way is to use a database to store the content, and then load from database on the home page. Another way is to store data in the HttpContext object, this however is not persistent.

更多细节会很好。您希望能够拥有一个管理页面,其中您有一个输入表单,允许您在主页上设置内容?如果是这样,有几种方法可以做到这一点。一种方法是使用数据库来存储内容,然后从主页上的数据库加载。另一种方法是将数据存储在HttpContext对象中,但这不是持久性的。

#3


You'll want to the display text from some sort of dynamic source, such as a database, xml file, flat file, etc. In the admin page, you write to that data source and load the text for the source from that source as well.

您需要来自某种动态源的显示文本,例如数据库,xml文件,平面文件等。在管理页面中,您将写入该数据源并从该源加载源的文本作为好。

#1


you want a sort of content management system, try saving this label in some datasource (xml or database) and then use it where required.

你想要一种内容管理系统,尝试在一些数据源(xml或数据库)中保存此标签,然后在需要时使用它。

#2


More details would be good. You want to be able to have an admin page where you have an input form that allows you to set content on the home page? If so, there are a few ways to do that. One way is to use a database to store the content, and then load from database on the home page. Another way is to store data in the HttpContext object, this however is not persistent.

更多细节会很好。您希望能够拥有一个管理页面,其中您有一个输入表单,允许您在主页上设置内容?如果是这样,有几种方法可以做到这一点。一种方法是使用数据库来存储内容,然后从主页上的数据库加载。另一种方法是将数据存储在HttpContext对象中,但这不是持久性的。

#3


You'll want to the display text from some sort of dynamic source, such as a database, xml file, flat file, etc. In the admin page, you write to that data source and load the text for the source from that source as well.

您需要来自某种动态源的显示文本,例如数据库,xml文件,平面文件等。在管理页面中,您将写入该数据源并从该源加载源的文本作为好。

相关文章