在表格的每一行中,在asp.net中动态添加标签 [英] In every row of table add label dynamically in asp.net

查看:73
本文介绍了在表格的每一行中,在asp.net中动态添加标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我要动态添加标签的表格应添加到表格的每一行中.在页面中生成但未添加到表控件中的标签

in my project i want dynamically label should be added in every row of table. the label generated in my page but not added to table control

推荐答案

这是我在Google搜索使用javascript向表添加行"时获得的第一个链接'-动态添加/删除HTML表中的行使用JavaScript [
This is the first link that I got when I Googled for ''add row to table using javascript'' - Dynamically Add/Remove rows in HTML table using JavaScript[^].


进入foreach循环以获取表行.创建标签并将其添加到表行中的占位符/面板.试试吧!

在这里查看:
MSDN:如何:以编程方式将控件添加到ASP.NET网页 [ ^ ]
Go in a foreach loop for table rows. Create labels and add them to placeholder/panel in the table row. Try!

Look here: MSDN: How to: Add Controls to an ASP.NET Web Page Programmatically[^]


这篇关于在表格的每一行中,在asp.net中动态添加标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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