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

Page break in ASP pages

P: n/a
Can we set page breaks in ASP Pages dynamically based on the data being
populated?

Akshay.
Apr 23 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a
On Apr 23, 12:10 pm, iweb <i...@discussions.microsoft.comwrote:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?

Akshay.
what's this? a page break for a printer?

Apr 23 '07 #2

P: n/a
Yes, Page break for printing.

Akshay.

"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussions.microsoft.comwrote:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?

Akshay.

what's this? a page break for a printer?

Apr 23 '07 #3

P: n/a
On Apr 23, 1:36 pm, iweb <i...@discussions.microsoft.comwrote:
Yes, Page break for printing.

Akshay.

"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussions.microsoft.comwrote:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?
Akshay.
what's this? a page break for a printer?- Hide quoted text -

- Show quoted text -
<html>
<head>
<title>Print</title>
<style type="text/css">
..break { page-break-before: always; }
</style>
</head>
test1
<br class="break">
test2
</body>
</html>

Apr 23 '07 #4

P: n/a
How will this dynamically manage the data in one page and shift the extra one
to the other page?

How will this code understand that it has to page break and where??

If there is a table, how will it know to show one row / column on one page
and if its spilling or cutting, to take the full row / column on the next
page??

Can this code manage this dynamism?If not how to manage - pls guide.

Regards,
Akshay.
"Alexey Smirnov" wrote:
On Apr 23, 1:36 pm, iweb <i...@discussions.microsoft.comwrote:
Yes, Page break for printing.

Akshay.

"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussions.microsoft.comwrote:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?
Akshay.
what's this? a page break for a printer?- Hide quoted text -
- Show quoted text -

<html>
<head>
<title>Print</title>
<style type="text/css">
..break { page-break-before: always; }
</style>
</head>
test1
<br class="break">
test2
</body>
</html>

Apr 23 '07 #5

P: n/a
What he gave you was the CSS code to force a page break while
printing. It would be up to you to insert the code into your own.

1. put the css code into your page or seperate style css file.
<style type="text/css">
.break { page-break-before: always; }
</style>

2. Write your code which will determine when a new page is needed, and
when it is, insert a <div class="break"></div>. If you are dealing
with tables, you may need to close the table at the bottom of the
page, before the <div class="break"></div>, then restart the table
after the div. I am not sure how it will handle a <tr class="break">
or something like that.

I would say this is the best answer for your question, which is
somewhat ambiguous.

On Apr 23, 11:14 am, iweb <i...@discussions.microsoft.comwrote:
How will this dynamically manage the data in one page and shift the extra one
to the other page?

How will this code understand that it has to page break and where??

If there is a table, how will it know to show one row / column on one page
and if its spilling or cutting, to take the full row / column on the next
page??

Can this code manage this dynamism?If not how to manage - pls guide.

Regards,
Akshay.

"Alexey Smirnov" wrote:
On Apr 23, 1:36 pm, iweb <i...@discussions.microsoft.comwrote:
Yes, Page break for printing.
Akshay.
"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussions.microsoft.comwrote:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?
Akshay.
what's this? a page break for a printer?- Hide quoted text -
- Show quoted text -
<html>
<head>
<title>Print</title>
<style type="text/css">
..break { page-break-before: always; }
</style>
</head>
test1
<br class="break">
test2
</body>
</html>

Apr 23 '07 #6

P: n/a
What he gave you was the CSS code to force a page break while
printing. It would be up to you to insert the code into your own.

1. put the css code into your page or seperate style css file.
<style type="text/css">
.break { page-break-before: always; }
</style>

2. Write your code which will determine when a new page is needed, and
when it is, insert a <div class="break"></div>. If you are dealing
with tables, you may need to close the table at the bottom of the
page, before the <div class="break"></div>, then restart the table
after the div. I am not sure how it will handle a <tr class="break">
or something like that.

I would say this is the best answer for your question, which is
somewhat ambiguous.

On Apr 23, 11:14 am, iweb <i...@discussions.microsoft.comwrote:
How will this dynamically manage the data in one page and shift the extra one
to the other page?

How will this code understand that it has to page break and where??

If there is a table, how will it know to show one row / column on one page
and if its spilling or cutting, to take the full row / column on the next
page??

Can this code manage this dynamism?If not how to manage - pls guide.

Regards,
Akshay.

"Alexey Smirnov" wrote:
On Apr 23, 1:36 pm, iweb <i...@discussions.microsoft.comwrote:
Yes, Page break for printing.
Akshay.
"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussions.microsoft.comwrote:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?
Akshay.
what's this? a page break for a printer?- Hide quoted text -
- Show quoted text -
<html>
<head>
<title>Print</title>
<style type="text/css">
..break { page-break-before: always; }
</style>
</head>
test1
<br class="break">
test2
</body>
</html>

Apr 23 '07 #7

P: n/a
On Apr 23, 5:14 pm, iweb <i...@discussions.microsoft.comwrote:
How will this dynamically manage the data in one page and shift the extra one
to the other page?

How will this code understand that it has to page break and where??
Please read for more information
http://msdn.microsoft.com/library/de...reakbefore.asp

Try to print my page. It should get a two pages contained 1) test1 2)
test2

Apr 23 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.