473,569 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

page break style with aspx form

I am trying to insert a printer page break inside of a form. I do not
seem to be able to do this.
My form contains 3 asp panels. Each of the panels have dynamically built
content, and they are dynamically displayed based on certain conditions.
What I want to do, and I thought this would be pretty easy, is when
printing, start each panels content on a new page. It is ok if the content
spans multiple pages, just want to start it on a new page when printing. I
have tried to put an <HR> tag in between the panels and build the page break
after style from the format menu, and included my own style sheet, and apply
a page break style. Nothing seems to work.
I know my style syntax is correct, because I can take a standard html
page and apply page break after styles to text and elements and it works.
(samples: P.page { page-break-after: always } )
Any suggestions on how to accomplish this?

Thanks,
J
Nov 22 '05 #1
2 3686
In message <u3************ **@tk2msftngp13 .phx.gbl>, Scanner2001
<je************ @hotmail.com> writes
I am trying to insert a printer page break inside of a form. I do not
seem to be able to do this.
My form contains 3 asp panels. Each of the panels have dynamically built
content, and they are dynamically displayed based on certain conditions.
What I want to do, and I thought this would be pretty easy, is when
printing, start each panels content on a new page. It is ok if the content
spans multiple pages, just want to start it on a new page when printing. I
have tried to put an <HR> tag in between the panels and build the page break
after style from the format menu, and included my own style sheet, and apply
a page break style. Nothing seems to work.
I know my style syntax is correct, because I can take a standard html
page and apply page break after styles to text and elements and it works.
(samples: P.page { page-break-after: always } )
Any suggestions on how to accomplish this?


Add the following code to the page displayed in IE where you require a
Real Physical Page Break when printed.

<P style="page-break-after:always;"> &nbsp;</P>

You may gain an extra blank line when displayed in the browser (depends
on version in use) however, when IE sends the data to your printer it
should force a proper Page-Break to occur immediately after this line.

--
Andrew D. Newbould E-Mail: ne********@NOSP AMzadsoft.com

ZAD Software Systems Web : www.zadsoft.com
Nov 22 '05 #2
In message <u3************ **@tk2msftngp13 .phx.gbl>, Scanner2001
<je************ @hotmail.com> writes
I am trying to insert a printer page break inside of a form. I do not
seem to be able to do this.
My form contains 3 asp panels. Each of the panels have dynamically built
content, and they are dynamically displayed based on certain conditions.
What I want to do, and I thought this would be pretty easy, is when
printing, start each panels content on a new page. It is ok if the content
spans multiple pages, just want to start it on a new page when printing. I
have tried to put an <HR> tag in between the panels and build the page break
after style from the format menu, and included my own style sheet, and apply
a page break style. Nothing seems to work.
I know my style syntax is correct, because I can take a standard html
page and apply page break after styles to text and elements and it works.
(samples: P.page { page-break-after: always } )
Any suggestions on how to accomplish this?


Add the following code to the page displayed in IE where you require a
Real Physical Page Break when printed.

<P style="page-break-after:always;"> &nbsp;</P>

You may gain an extra blank line when displayed in the browser (depends
on version in use) however, when IE sends the data to your printer it
should force a proper Page-Break to occur immediately after this line.

--
Andrew D. Newbould E-Mail: ne********@NOSP AMzadsoft.com

ZAD Software Systems Web : www.zadsoft.com
Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4180
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens in IE as well as FireFox. This code has been tested on a Win2003 server, IIS6, PHP 5.0.3, mySQL 4.1.8 and it works fine. The problem server is...
1
785
by: Scanner2001 | last post by:
I am trying to insert a printer page break inside of a form. I do not seem to be able to do this. My form contains 3 asp panels. Each of the panels have dynamically built content, and they are dynamically displayed based on certain conditions. What I want to do, and I thought this would be pretty easy, is when printing, start each panels...
3
6252
by: Barbara Alderton | last post by:
I recently wrote an ASP.NET app that used user controls. I produced a printer-friendly output form. One requirement was a pagebreak between one part of the form and another. I had no problem adding the style definition below in the <hr> tag (line tag) which was the last item in the page before the break: <hr color="gray" size="1"...
2
13832
by: moondaddy | last post by:
I have a page that I'm making for the sole purpose of printing and this page makes 1.5 printed pages. Is there a way to force a print page break at a specific place so when the user prints the page, it wont arbitrarily break in the middle of a table or line of text? Thanks. -- moondaddy@nospam.com
2
6952
by: SR | last post by:
I have started a web site using ASP.NET 2.0. I would like to centralize all of my classes in a StyleSheet but I cannot figure out how to link the StyleSheet to a Content Page since there is no header. I tried to put the link tag in the Master page, but the classes are not recognized in the Content Page. How do I use a StyleSheet with the...
7
2391
by: GaryDean | last post by:
In my old 1.1 apps the default was MS_POSITIONING="GridLayout" and Textboxes and labels and such always had POSITION: absolute; and I never had any distortion when the page was rendered. Life was good. now in 2.0 I'm using the default placeholder and putting a table in the placeholder and putting controls in the cells in the table. "the way...
5
2308
by: k.vanderstarren | last post by:
Hi All, I'm trying to convert some ASP.NET code that I found at http://weblogs.asp.net/dannychen/archive/2005/12/02/432190.aspx from VB to C#. I've managed to convert the portion that is in the <script></script> section of the file fine (I think) but I've been unable to convert the code in each of the <asp:Label /tags so far. Can anyone...
4
3134
by: pbd22 | last post by:
hi. could somebody tell me, when uploading a file, i know the form where the upload component is must have enctype=multipart/form-data but, is the same true for the form with the server code to handle the upload? thanks.
4
2134
daJunkCollector
by: daJunkCollector | last post by:
I am using AJAX to dynamically load content into a <div> layer. As it stands, I am loading .html's into the <div> layer and it works awesome. The problem is that when I try to replace the .html with .aspx the content fails to load and I receive an error. It is very possible that the method I am currently using will not work as I desire. ...
3
4407
by: premprakashbhati | last post by:
hi, good evening.. i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button() here is the code ...its work fine when iam using a normal web page... but can't in content page.... Code in Master Page <%@ Master Language="C#" AutoEventWireup="true"...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7982
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6286
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
944
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.