Difference between DataList and Repeater? ans:Both are similar,except for a difference that Repeater datas can't be edited whereas datalist datas can be edited
RE: Difference between DataList and Repeater?ans...
The differences are 1. Repeater is generally used as a read-only forward-only control displaying data items one by one. DataList is used as a read-write control displaying one row of data at a time. Repeater is not used when editing is a requirement. 2. Repeater derives from Control while DataList derives from WebControl. As a result Repeater needs more programming to control the display generate events etc. and is not used for complex purposes. 3. DataList is flexible in terms of number of data-rows which can be displayed per row. Repeater does not have this facility. 4. Repeater is the only control which allows html start tag to be placed in header item template and end tag to be placed in the footer item template. DataList does not allow this. 5. Repeater has HeaderTemplate FooterTemplate ItemTemplate AlternatingItemTemplate and SeparatorTemplate. DataList has all these 5 templates + SelectedItemTemplate and EditItemTemplate
RE: Difference between DataList and Repeater?ans:Both are similar,except for a difference that Repeater datas can't be edited whereas datalist datas can be edited
Both are Templete Driven Control only one difference is default behaviour of the datalist control is to render its content into HTML table