I am trying to convert online from VB.NET to C# in ASP.NET
this is the line
<asp:Label ID="PriceLabel" runat="server" Visible="false" Text='<%# IIf(DataBinder.Eval(Container.DataItem, "NewPrice") = 0, Eval("Price"),Eval("NewPrice"))%>'></asp:Label>
But I don't know how to use the IIF in c#!!
Did anyone use it before?