Why is the footer-item not included in Repeater.Items?
问题 I need to get a value from a textbox inside a FooterTemplate in the OnClick event of a button. My first thought was to loop through the items-property on my repeater, but as you can see in this sample, it only includes the actual databound items, not the footer-item. ASPX: <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> Item<br /> </ItemTemplate> <FooterTemplate> Footer<br /> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </FooterTemplate> </asp:Repeater> <asp:Button ID=