如何动态添加标签? [英] How to add label dynamically?

查看:114
本文介绍了如何动态添加标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果在数据库中添加了新项目,并且新项目的名称需要在页面中显示为标签,即每次添加项目时都需要使用标签来显示。但是如何动态地在ASP.NET中完成。

If there new items added in database and the name of the new item need to be shown in page as a label i.e every time items added there is a need to take a label to show that. But how dynamically that can be done in ASP.NET.

推荐答案

要动态地向页面添加控件,请尝试 -

http://msdn.microsoft.com/en-us/library/kyt0fzt1%28v = vs.100%29.aspx [ ^ ]

http://www.developerfusion.com/code/3826/adding-controls-to-placeholders-dynamically/ [ ^ ]

http://learning2code.net/Learn/2009/8/12/Adding-Controls-to-an- ASPNET-form-Dynamically.aspx [ ^ ]
To add controls to a page dynamically, try -
http://msdn.microsoft.com/en-us/library/kyt0fzt1%28v=vs.100%29.aspx[^]
http://www.developerfusion.com/code/3826/adding-controls-to-placeholders-dynamically/[^]
http://learning2code.net/Learn/2009/8/12/Adding-Controls-to-an-ASPNET-form-Dynamically.aspx[^]


这篇关于如何动态添加标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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