Hi
In below code i want to add another condition if Eval'OnBreak'= Break then ltrlBookDelivertStatus should be Break
C#
'>Thanks
Hi
In below code i want to add another condition if Eval'OnBreak'= Break then ltrlBookDelivertStatus should be Break
'>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
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 8, 2023, 6:07 AM EDT
You can change Literal to Label,
'Amit MohantyRank #112 · 20K reputationPosted Apr 8, 2023, 3:06 AM EDT
'>Ramco RamcoRank #462 · 5.4K reputationPosted Apr 8, 2023, 5:10 AM EDT
Hi
Getting error - Server tag is not well formed
Thanks
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 8, 2023, 5:31 AM EDT
Hello Ramco,
I think you should do this in your response query so your UI will be much cleaner. BookDeliveryStatus should be set with the required logic in the business layer.
It's good practise to do this logic at the back end while getting responses from the database. Then you can apply your logic in a query or business logic, which will make your code more clean.
Ramco RamcoRank #462 · 5.4K reputationPosted Apr 8, 2023, 5:33 AM EDT
Hi JIgnesh
If i have to change here what is the error
Thanks
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 8, 2023, 5:41 AM EDT
Hello Ramco,
Try below one,
'Ramco RamcoRank #462 · 5.4K reputationPosted Apr 8, 2023, 5:42 AM EDT
Hi Jignesh
I have written this but still getting same error
'>Thanks
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 8, 2023, 5:45 AM EDT
Hello,
You need to change here, please remove extra > at end of Text, one more change need to do here Eval("OnBreak'").ToString().Trim() == "Break"
Text=''Ramco RamcoRank #462 · 5.4K reputationPosted Apr 8, 2023, 5:53 AM EDT
Hi Jignesg
It is giving error = > Literal is missing > character from start
'Thanks
Ramco RamcoRank #462 · 5.4K reputationPosted Apr 8, 2023, 6:13 AM EDT
Hi Jignesh
Is not closing tag > is missing in this code also
Thanks