When printing a web page with a list of items, sometimes the items end up appearing garbled across multiple pages. Is there a method to add a CSS class definition after a certain number of items have been added on a page?
The CSS in question would be associated with the page break definition:
.page-break { page-break-before: always; }
Here is the relevant page code for the repeater:
<asp:Repeater ID="SearchResultsRepeater" runat="server">
<HeaderTemplate>
<ul>
</HeaderTemplate>
<ItemTemplate>
<li>
[content]
</li>
</ItemTemplate>
<AlternatingItemTemplate>
<li class="SystemShaded">
[content]
</li>
</AlternatingItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>