normally on would use the following :-
aspx page:-
Link1
code behind:-
You can do this in the ItemDatabound event.
Check out: http://www.codeguru.com/csharp/.net/net_asp/tutorials/article.php/c12065