page break in DataList
<p>How can i implement a page break in a Data List after showing four items.
Below is my code where i have binded the DataList with a DataTable.</p>

<pre><code>&lt;asp:DataList ID="DataList1" runat="server"  BackColor="White" 
            BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
            GridLines="Horizontal" Width="90%"&gt;
            &lt;AlternatingItemStyle BackColor="#F7F7F7" /&gt;
            &lt;FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" /&gt;

            &lt;HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" /&gt;

            &lt;ItemStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" /&gt;
            &lt;ItemTemplate&gt;
                &lt;table width="100%" height="240px"&gt;
                    &lt;tr&gt;
                        &lt;td&gt;
                            &lt;asp:Label ID="lblTestID" runat="server" Text='&lt;%# Eval("Name") %&gt;' Font-Size="32"&gt;&lt;/asp:Label&gt;
                        &lt;/td&gt;
                        &lt;td align="right"&gt;
                          &lt;asp:Image ID="Image1" runat="server" src= '&lt;%# Eval("PhotoPath") %&gt;' Height="180" Width="150"  /&gt;
                        &lt;/td&gt;  
                    &lt;/tr&gt;
                &lt;/table&gt;

            &lt;/ItemTemplate&gt;
            &lt;SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" /&gt;
        &lt;/asp:DataList&gt;
</code></pre>

<p>My actual problem is i have to do bulk printing. Currently when i do, i get half data in one page and half in other page. 
I thought if page-break is the solution to my problem</p>
