Ramco Ramco

Ramco Ramco

  • 440
  • 3.4k
  • 529.2k

Eval in Aspx

Apr 11 2023 4:42 PM

Hi

  I have below statement . It is showing Arriving . But since Eval(OnBreak) = 'Break' i want that it should show Break. If Eval(OnBreak) is '' then it should have shown arriving.

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

Thanks


Answers (5)