ASP.Net Programming Question:

How can you provide an alternating color scheme in a Repeater control?

ASP.Net Interview Question
ASP.Net Interview Question

Answer:

AlternatingItemTemplate Like the ItemTemplate element, but rendered for every other row (alternating items) in the Repeater control. You can specify a different appearance for the AlternatingItemTemplate element by setting its style properties.


Previous QuestionNext Question
What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?Which template must you provide, in order to display data in a Repeater control?