TEMPLATE | DESCRIPTION | SUPPORTED BY |
AlternatingItemTemplate | Represents the collection of elements and controls that are rendered for every alternating row in the data source. | Repeater and DataList |
SelectedItemTemplate | Represents the collection of elements and controls that are rendered when an item is selected in the control | DataList |
nbsp; | ||
HeaderTemplate | Represents the collection of elements and controls that are accessed one before any other item is accessed in the control | Repeater, DataList. and DataGrid |
FooterTemplate | Represents the collection of elements and controls that are accessed one time after all the items are accessed in the control. | Repeater, DataList, and DataGrid |
EditItemTemplate | Represents the collection of elements and controls that are rendered when an item in the server control is in edit mode. | DataList and DataGrid |
SeparatorTemplate | Represents the collection of elements and controls that are rendered between each item. | Repeater and DataGrid |
PagerTemplate | Represents the collection of elements and controls that are rendered when information is paged | DataGrid |
ItemTemplate | Represents the collection of elements and controls that are rendered one time for each data source row | Repeater, DataList, and DataGrid |
You can create and edit a template for a server control either by using Visual Designer or by editing ASP.NET code. When you use Visual Designer, the corresponding ASP.NET code is generated automatically.
No comments:
Post a Comment