Page Break behind code [closed]

lantpranuct

New Member
this is my code to show product \[code\]List<Product> products = proADO.findAllActiveProduct(); StringBuilder str = new StringBuilder(); foreach (Product each in products) { str.Append("<a href='http://stackoverflow.com/questions/15462591/nailsdetail.aspx?nailid=" + each.getId() + "'>"); str.Append("<div style='float:left;width:250px;margin-top:10px;margin-right:7px; border:1px solid black;'>"); str.Append("<table border='0' cellpadding='0' cellspacing='0' width='100%'>"); str.Append("<tr>"); str.Append("<td valign='top' align='right' style='background-image:url(" + each.getImage() + ");background-repeat:no-repeat;background-size:250px 180px;width:250px;height:180px;padding-top:5px;padding-right:5px;color:blue;font-size:20px;'>$ " + each.getPrice().ToString() + "</td>"); str.Append("</tr>"); str.Append("</table>"); str.Append("</div>"); str.Append("</a>"); } phNails.Controls.Add(new LiteralControl(str.ToString()));\[/code\]Now I want to show limit 8 products in one page, if the list have more than 8 products, it should have link page 2 to show remain products.
 
Back
Top