How to loop out data from sqldatasource and into text and add brackets and commas like below format ?
I know the direction is StringBuilder but I am weak in it. Anyone can help to post the code ?
Database now is
Mushrooms, 3
Onions, 1,
Olives, 1,
Zucchini, 1,
Pepperoni, 2
My desired text to appear in Label1.text is
['Mushrooms', 3], ['Onions', 1], ['Olives', 1], ['Zucchini', 1], ['Pepperoni', 2]
Last one should have no comma.
Thanks a lot
Go to the complete details ...