Using the following function in-line due to the fact that the Code-Behind is not available...
<%# IIf(String.IsNullOrEmpty(GetProductInfo(Container.DataItem)), DataBinder.Eval(Container.DataItem, "ProductName"), GetProductInfo(Container.DataItem))%>
I am still getting the same compiler error of invalid cast...
Is there anything wrong the code above or a reason why it would not work?