Ramco Ramco

Ramco Ramco

  • 437
  • 3.4k
  • 543.1k

Eval in Aspx

Apr 8 2023 6:11 AM

Hi

 In below code i want to add another condition if Eval'OnBreak'= Break then ltrlBookDelivertStatus should be Break

<asp:Literal ID="ltrlBookDeliveryStatus" runat="server" Text='<%# Eval("BookDeliveryStatus").ToString().Trim() == "Dispatched" ? "Arriving ": Eval("BookDeliveryStatus")%>'></asp:Literal>

Thanks


Answers (10)