Difference between DataList and Repeater controls

Asp.Net Interview Question
What is the difference between DataList and Repeater data binding controls?

Answer: The DataList control is similar to the Repeater control. However, it has some additional properties and templates that you can use to display its data in a diverse fashion. 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.

Furthermore, the RepeatDirection and RepeatColumns properties of a DataList control can be exploited to lay out the data in horizontal or vertical fashions.

41 comments:

  1. Thank you very much. An additional bit is:
    Events in Data List

    Item Created
    Item Command
    Cancel Command
    Edit Command
    Delete Command
    Update Command
    OnDatBound Command

    ReplyDelete
  2. very useful thnks

    ReplyDelete
  3. thanks. this was useful.

    ReplyDelete
  4. Thanks a lot for writing such a useful post.

    ReplyDelete
  5. Great article...
    For more .net Article, source code, interview Questions and answers visit:
    http://www.dotnetcodes.com

    ReplyDelete
  6. Nice work. This is really useful.

    ReplyDelete
  7. You guys can also get the answers on such a good question by visiting my website too...Its sure that you will get the relevant as well as the quick response...

    ReplyDelete
  8. Thanks for the post

    You can find some good Techical Interview Question Answers on in the below link

    Technical Interview Question Database

    Thanks
    Joya

    ReplyDelete
  9. Hi

    I read this post 2 times. It is very useful.

    Pls try to keep posting.

    Let me show other source that may be good for community.

    Source: General manager interview questions

    Best regards
    Jonathan.

    ReplyDelete
  10. Thanks for explaining difference between DataList and Repeater

    http://www.dotnetquestionanswers.com/

    ReplyDelete
  11. Thanks a lot for this answer.

    ReplyDelete
  12. Thanks for this post. Quite informative and useful for me! Hope to see more new posts!

    ReplyDelete
  13. I loved as much as you will receive carried out right here.
    The sketch is tasteful, your authored subject matter stylish.
    nonetheless, you command get bought an edginess over that you wish be delivering the following.

    unwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield this hike.
    Also see my webpage: teenpornsexpussy.com

    ReplyDelete
  14. Saved as a favorite, I like your web site!
    Stop by my web blog - Deep Throat Beauty Swallows Jizz

    ReplyDelete
  15. Wow, this paragraph is pleasant, my sister is analyzing these things, so I am going to let know her.
    Also see my site - Bra Bustin’ Vanessa Blue Rides White Dick

    ReplyDelete
  16. obviously like your website but you need
    to check the spelling on quite a few of your posts. A number of them are rife with
    spelling problems and I in finding it very bothersome to inform the truth nevertheless
    I'll certainly come again again.
    my website :: Fucking on the Desk

    ReplyDelete
  17. When I initially commented I seem to have clicked the -Notify me when
    new comments are added- checkbox and from now on each time a comment is
    added I receive four emails with the exact same comment.
    There has to be a means you can remove me from that service?
    Thanks a lot!
    Feel free to surf my web site ; Hardcore gf sex video online

    ReplyDelete
  18. Hey! I'm at work browsing your blog from my new iphone! Just wanted to say I love reading through your blog and look forward to all your posts! Keep up the fantastic work!
    my web page - coed party

    ReplyDelete
  19. My spouse and I stumbled over here from
    a different page and thought I may as well check things out.
    I like what I see so i am just following you. Look forward to looking over your
    web page for a second time.
    Here is my blog ; Hear Me Laugh As I CUM!!!

    ReplyDelete
  20. I always spent my half an hour to read this blog's articles or reviews everyday along with a mug of coffee.
    My site :: Hot Anal Action with Katalina

    ReplyDelete
  21. Excelent resource
    For more interview querstion visit:
    http://dotnetcodes.com/frmArticlesTyp.aspx?Cat=Interview%20Questions

    ReplyDelete
  22. It's awesome in favor of me to have a website, which is useful in support of my know-how. thanks admin

    Also visit my web blog :: domain names for sale

    ReplyDelete
  23. Taiwanese businesses will see how methods of website linking lowers marketing costs while increasing
    sales. The methods of website linking services offered by them several tactics akin to directory submission,
    methods of website linking blog, article marketing
    and link building are used for local traffic.

    Also visit my web blog; website seo

    ReplyDelete
  24. Greetings from California! I'm bored to death at work so I decided to browse your site on my iphone during lunch break. I really like the info you present here and can't
    wait to take a look when I get home. I'm amazed at how fast your blog loaded on my cell phone .. I'm not even using WIFI, just 3G
    .. Anyways, wonderful site!

    Feel free to visit my web-site; sexykoo.com

    ReplyDelete
  25. Good post however , I was wanting to know if you could write a litte more on this subject?
    I'd be very grateful if you could elaborate a little bit further. Many thanks!

    my web page sharepublish.com

    ReplyDelete
  26. I am no longer positive the place you are getting your information, however good topic.
    I needs to spend a while studying much more or working out more.

    Thank you for excellent information I was
    on the lookout for this information for my mission.

    Also visit my weblog - whatsapp spy

    ReplyDelete
  27. What's up, I would like to subscribe for this
    website to obtain latest updates, therefore where can i
    do it please help.

    Have a look at my web page: game of war fire age hack

    ReplyDelete
  28. Have you watсhed the animal changes during autumn monthѕ.
    The 14 Day Rapіd Fat Loss Plan offers yߋu the versatility to consume the meals which you love whіle smartly usіng
    carbohʏdrates, and many tyрes of your chosen cheat meals, as approach to գuіckly accelerate your mеtabolism, preserve lean musclе mass,
    and burn a wild quantity of body fat - all whilе offering ʏou easy
    energy. So aerobic burns fat and carbs, and anaerobic burns carbs
    only.

    Stop by my web-sіte factor quema Grasa pdf

    ReplyDelete
  29. Truly a very good article on how to handle the future technology. After reading your post,thanks for taking the time to discuss this, I feel happy about and I love learning more about this topic
    Web Development Company in India

    ReplyDelete
  30. great tips had from your blog and got more useful information about gre. from this article i learnt one thing what kind of effort will make you good. keep share more things for us.
    PTE Coaching in Chennai

    ReplyDelete
  31. Nice work, your blog is concept-oriented, kindly share more blogs like this
    Dot NET Online Course Hyderabad

    ReplyDelete
  32. ./go/anonymouscommentshelp
    javascript:void(0)
    javascript:void(0)

    ReplyDelete

Type more interview question answer here