How to use Page Number with Page Break in Classic ASP

admin

Administrator
Staff member
Hi All !

I'm Raj from India. I'm new in ASP.

I want to know about Page Numbering with Page Break in ASP.

I use few recordsets in ADO Connection to display records in a single page with Page Break option.

It's look like below condition:

<% if not rsF1.eof or not rsF2.eof then %>
<br style="page-break-after:always;" />
<% else %>
<br style="page-break-after:avoid;" />
<% end if %>

I use Table Definitions to show records with each session objects.

Like below :

<% if not rs1.eof or not rs2.eof then %>
<table>
// Here seesion values coding
</table>
<% end if %>

<% if not rsF1.eof or not rsF2.eof then %>
<table>
// Here seesion values coding
</table>
<% end if %>


Here I use 4 record sets with Table definitions.

Perviously I use PageNumber with Default in Print Preview ( &w&bPage &p of &P)

It Shows all Pages with Pagenumber. But I need to show Page Number in each Page if Page Break exists.

Plz send any ideas to do Page Numbering in ASP.

For Ex :

Page 1

Customer Details:

Branch List :

No. Name ID
1. Peter 12345
2. Jhon 98068
3. Reon 81234
..........and so on

Policy List :

No. Name ID
1. Johan P78654
2. Jolie P70723
3. Vinay P50932
..........and so on



Page 2

Employer Details:

Main List :

No. Name ID
1. Viera 63245
2. Sumon 73456
3. Eddy 32897
..........and so on

Sub List :

No. Name ID
1. Binoy E98012
2. Sami E70723
3. Robert E50932
..........and so on

........... and so many pages.


If need more details plz send email to me. <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->

Thanks & Regards,

Azhagan.database ?

you can use multiple different methods but in the db is the best.
 
Back
Top