<FooterTemplate>
<asp:DropDownList id="ssbm" runat="server" Width="100%"></asp:DropDownList>
</FooterTemplate>
请问如何给FooterTemplate中的DropDownList绑定数据,不知道如何实现,小弟谢谢了
<asp:DropDownList id="ssbm" runat="server" Width="100%"></asp:DropDownList>
</FooterTemplate>
请问如何给FooterTemplate中的DropDownList绑定数据,不知道如何实现,小弟谢谢了
myList.DataSource = 你求取到的数据集;
myList.DataTextField = "id";
myList.DataValueField = "name";
myList.DataBind():
我把这里Controls.Count-1改Controls.Count-2了就可以了,请问Controls.Count-2是什么意思谢谢
该控件之下,有一个大对象,即它生成的表格,此为Controls[0]
在此大对象之下,又包含着若干个子对象,分别为:页眉/普通行/交替行/间隔行...等
所以要寻找特定的如页脚里面控件,必须按这个顺序去找,你所说的Controls.Count-2意思就是该对象的倒数第2个子对象