在设计时添加数据以进行控制 [英] Add data at design time to control
本文介绍了在设计时添加数据以进行控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在设计时将数据添加到asp:Table控件中,只是为了以表格式显示一组数据,任何人都可以共享一些代码段
I need to add data to asp:Table control at design time, just to show a set of data in table format, can anyone share some code snippet
推荐答案
具有设计时支持的ExpandingTable [
<pre lang="HTML"> <asp:tablerow runat="server" xmlns:asp="#unknown"> <asp:tablecell backcolor="Silver" runat="server"><asp:label id="lblComponents" runat="server" text="Components"></asp:label> </asp:tablecell> <asp:tablecell backcolor="Silver" runat="server"><asp:label id="lblScripts" runat="server" text="Scripts"></asp:label> </asp:tablecell> </asp:tablerow> <asp:tablerow runat="server" xmlns:asp="#unknown"> <asp:tablecell runat="server"><asp:label id="lblComp1" runat="server" text="Comp1"></asp:label> </asp:tablecell> <asp:tablecell runat="server"></asp:tablecell> </asp:tablerow>
我已经按照上述方式进行了编码,以表格格式显示了一些数据
I''ve coded in the above way to show some set of data in table format
这篇关于在设计时添加数据以进行控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文