Ti crei una funzione nel codice:

codice:
Function MyFun(str as string) as String
If str = A Then
   Return X
Else
   Return Y
End If
End Function
e nel repeater

codice:
<%# MyFun(Container.DataItem("nomecampo")) %>