I am looking to evaluate two strings from my dataset to identify a class description using a ternary operator. I continue to get a compiler error when running this code stating
I think the problem is that you are trying to do comparison between two strings. Just convert the values to a int or something similar for comparison. So for example, change your comparison to something like the below:
Convert.ToInt32(Eval("Team2Score"))) ? 'Winner':'' %>"><%# Eval("Team1")%>
Or you can just cast it to the appropriate type:
(int)Eval("Team2Score")) ? 'Winner':'' %>"><%# Eval("Team1")%>
Hope this helps!