Greetings, I ran into an issue on how to display items from my list. I have looked online but the only code was in c# with console.writeline
command. I also tried this:
Response.Write(Convert.ToString(orderList[i]) + "<br \\");
and
lblOrder.Text = Convert.ToString(orderList[i]);
however it doesn't work.
here is my code:
if(getOrangeTotal != 0) {
orderList.Add(getOrangeTotal);
}
if (getBreadTotal != 0) {
orderList.Add(getBreadTotal);
}
sizeOfList = orderList.Count;
for (int i = 0; i < sizeOfList; i++)
{
//lblOrder.Text = Convert.ToString(orderList[i]);
//Response.Write(Convert.ToString(orderList[i]) + "<br \\");
}
Explanation: The code gets values from Session Variables from previous page and I want to display values that don't have value of 0 in them.
– MethodMan Dec 09 '17 at 23:17