In my database I represent fruit as 1 for apples, 2 for oranges, 3 for pears in a database field as an int.
My problem is when I output this using my GridView on the page it shows "1,2,3" so on when I want it to be displaying the fruits the numbers represent.
What I want is it to go if (fruit==1) display "Apple" etc.
Can I do this within the .aspx page?