Hi Mike,
This seems to be consistent with what I said earlier. ItemDataBound is only called when the data is bound which usually takes place at the initial page load and not at PostBack time. Markup binding, like you have now, is called both times.
Try to move your logic to the ItemCreated event, which is called on PostBack as well as the data is reconstructed from ViewState.
Hope this helps,
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.