By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,647 Members | 1,178 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,647 IT Pros & Developers. It's quick & easy.

Page break every 20th rows using Table Control in Visual Studio

P: n/a
Hi,
I add rows and cells to a table control runtime.

What I want to do is to have page breaks every 20th rows.

I use a page-break style like this:
<style>
P.pbr {page-break-before: always}
</style>

My problem is, I can't find a way to insert the html statement
<P CLASS="pbr"></P>
between the rows of a Table control.
I tried something like below, but I could not make it work.

TableRow tRow1= new TableRow();
Table1.Rows.Add(tRow1);

Response.Write("<P CLASS=\"pbr\"></P>");

TableRow tRow2= new TableRow();
Table1.Rows.Add(tRow2);
Anyone has some ideas on this?
Thank you

Feb 6 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.