change color of every other record in datalist
is it possible to change the apperance (font/color and so on) of every record that is retrieved from SQL when binding to a datalist in ASP.NET?
if so - how?
currently, it just looks pretty plain, i am going to have things like guestbooks/private messages/forum/news all using the same layout using datalist and would be nice to jazz it up
Re: change color of every other record in datalist
Use a Repeater Control and change the ItemTemplate and AlternateItemTemplate HTML Templates :)
Re: change color of every other record in datalist
...or use the datalist ItemStyle and AlternatingItemStyle properties.
DJ