Hi guys.
I have data on SQL server like this:
ItemID Quantity
1 3
2 0
3 7
I would like to display that data in GridView using templates. The thing is that instead of Quantity in numbers I would like to display text:
Green text saying "item on stock" when Quantity > 0
Red text saying "item unavailable" when Quantity = 0
My question is, how should I implement such functionality? How to generate such HTML tag dynamically and add it to the template?
Thanks for your time.