Ramco Ramco

Ramco Ramco

  • 441
  • 3.4k
  • 522.9k

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)