I'm trying the following syntax, but getting errors. Can anybody help?
for (int i = 0; i <= orders.Count ; i++)
{
sb.Append("<br/><table>");
sb.Append("<tr><td>" + orders["bacon"].ToString());
}
FULL CODE :
protected void Page_Load(object sender, EventArgs e)
{
ArrayList orders = new ArrayList();
StringBuilder sb = new StringBuilder();
orders = (ArrayList)Session["Order"];
sb.Append("<form id='form1' runat='server'>");
sb.Append("<div
style='text-align:center;page-break-after:always;'>");
sb.Append("<table style='width:6.5in;border:solid 1px
black;height:9.5in'>");
sb.Append("<tr>");
sb.Append("<td valign=top>");
sb.Append("<table width=90%>");
sb.Append("<tr>");
sb.Append("<td align=left valign=middle>ORDER</td>");
for (int i = 0; i <= orders.Count ; i++)
{
sb.Append("<br/><table>");
sb.Append("<tr><td>" + orders["bacon"].ToString());
}
sb.Append("</td></tr></table></td></tr></table></div></form>");
DisplayOrder.InnerHtml += sb.ToString();
}