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.
C#
'>Thanks
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.
'>Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajkiran SwainRank #165 · 14.4K reputationPosted Apr 11, 2023, 2:38 PM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Apr 11, 2023, 9:19 PM EDT
Hi Rajkiran
same issue
Thanks
Tuhin PaulRank #7 · 71.9K reputationPosted Apr 11, 2023, 10:28 PM EDT
As RajKiran Sir has posted correctly, in his modified code, the conditional statement has been updated to check for the following cases:
1. If Eval("BookDeliveryStatus") is "Dispatched", it will show "Arriving".
2. If Eval("OnBreak") is "Break", it will show "Break".
3. If Eval("BookDeliveryStatus") is empty, it will show "Arriving".
4. it will show the value of Eval("BookDeliveryStatus").
But still would like to see the code what you have implemented if it is possible for you to show Sir!
Amit MohantyRank #112 · 20K reputationPosted Apr 12, 2023, 12:28 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 12, 2023, 1:57 AM EDT
Hello Ramco,
refer this one : https://www.c-sharpcorner.com/Forums/eval-in-aspx
Try this one,
'