Adding the Full ItemTemplate
Unlike the DataGrid control (but more like the Repeater), you must supply at least a single HTML template in order to use the DataList control. As you saw in the previous section, you must supply layout information in the ItemTemplate. Creating templates for the DataList control is much like creating templates for the DataGrid control—it's up to you to supply the appropriate HTML within each DataList template to render the correct user interface. Although you only have to supply a single template, the DataList control supports all the templates shown in Table 19.3.
Template Name | Description |
---|---|
AlternatingItemTemplate | If defined, this template provides ... |
Get ASP.NET Developer's JumpStart now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.