Hi
In Database Value is +ve but i want to display as negative if Value is > 0
Thanks
Hi
In Database Value is +ve but i want to display as negative if Value is > 0
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Nov 1, 2022, 6:12 AM
You can also use ternary as
Amit MohantyPosted Nov 1, 2022, 4:20 AM
Try this
in your cs file
in your aspx
Aravind GovindarajPosted Oct 31, 2022, 4:16 PM
try something like the below
if value >0 ? value * -1 : value;