Why You Should Use HeaderTemplate and FooterTemplate in a Repeater
By: Heidi Bautista on Wednesday, November 8, 2006
Reader Level: 
When it's possible to accomplish a goal in multiple ways, how do you decide which pattern to follow? In this article we'll explore one such conundrum: Let's say you have an asp:repeater than repeats the data using an unordered list. The question is: Where do you put the open and close ul elements? Do you really need a header and footer template? The answer is: yes! Sure, it sounds simple (and it is) but the example demonstrates an important coding practice that good programmers should recognize.



