GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET
Go To First  |  Previous Question  |  Next Question 
 ASP.NET  |  Question 59 of 165    Print  
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

  
Total Answers and Comments: 3 Last Update: April 24, 2009     Asked by: dineshrajan 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 21, 2006 07:31:17   
Amin        

RE: Difference between DataList and Repeater?ans...
The Default format for repeater contol is normal formate but in datalist control it is in table format.
 
Is this answer useful? Yes | No
July 17, 2007 07:47:35   
samiksc Member Since: October 2005   Contribution: 233    

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

 
Is this answer useful? Yes | No
April 24, 2009 14:06:58   
aanand_agrawal Member Since: April 2009   Contribution: 8    

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
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape