The DataList control you posted is a mix of server side and client side code. Or to be more exact: the server side DataList control contains an ItemTemplate that will be repeated for each item in your data source. This ItemTemplate in turn contains HTML that is send to the browser as is. That is, it's not transformed in any way.
That is why you see CssClass on the DataList (a server control that runs at the server and emits HTML to client, including a transformation from the CssClass property to the class attribute) and just class on the <a> and other tags in the ItemTemplate.
Just for fun, right-click one of those pages in the browser and choose View Source. You'll see that the DataList has been transformed to client side code (a <table> I think) and that the CssClass properties have been changed to class attributes.
Hope this clarifies things.
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out
this post.