Ramco Ramco

Ramco Ramco

  • 441
  • 3.4k
  • 520.7k

Eval Condition

Apr 12 2023 2:23 AM

Hi

  In below code i want if Eval(Onbreak) = 'OnBreak then this condition should not get evaluated . If it is not onbreak then this condition should be evaluated

                               

                 <asp:Literal ID="ltrlBookDeliveredOn" runat="server" Text='<%# Eval("BookDeliveredOn","{0: dd-MM-yyyy}") != "" ?  Eval("BookDeliveredOn","{0: dd-MM-yyyy}") : Eval("TentativeDeliveryDate","{0: dd-MM-yyyy}")%>'></asp:Literal>

Thanks


Answers (2)