GeekInterview.com
Series: Subject: Topic:
Question: 7 of 348

What is the difference between the Repeater and the Datalist?

Asked by: bthshariff | Member Since Feb-2012 | Asked on: Apr 8th, 2012

View all questions by bthshariff

Showing Answers 1 - 1 of 1 Answers
Aarti helkar

Answered On : Apr 9th, 2012

Datalist is used to just read only purpose where data in table format.

where a repeater has no such format to store the data.
In repeater we can put data in any where in random format.

The Repeater control does not have any built-in layout or style. We are forced to specify all formatting-related HTML elements and style tags. On the other hand, a DataList control provides more flexibility to display data in a desired layout. It also provides data selection and editing capabilities. How does it do it?

Well, in addition to the five templates (Item Template, AlternatingItem Template, Separator Template, Header Template, Footer Template that a repeater has, the DataList control has two more templates: SelectedItemTemplate, and EditItemTemplate. These templates are useful for allowing data selection and data editing functionalities.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.