munklefish wrote:
Got It: <%# Convert.ToInt16(DataBinder.Eval(Container, "DataItem.menuVegetarian")) == 1 ? "wibble" : "poop" %>
Yup. DataBinder.Eval is looking at the object that is passed in the first argument, to evaluate its property (identified through the second string argument). You could also have done something like this I think:
<%# DataBinder.Eval(Container.DataItem, "menuVegetarian") == 1 ? "wibble" : "poop" %>
You might have had to use the Convert.ToInt16 code or not, it just depends on the field type itself.