473,378 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Page header for a table

I have an HTML table that is many pages long. How can I create a header that
repeats on each printed page?
Is there a way within CSS to do that?
Dec 19 '05 #1
4 937
Why don't you just use a control that supports paging?

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"Arne" <Ar**@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
I have an HTML table that is many pages long. How can I create a header
that
repeats on each printed page?
Is there a way within CSS to do that?

Dec 19 '05 #2
Clinton,
No, I don't want any paging. I want to send all the pages to the printer
with one click.
Arne
"clintonG" wrote:
Why don't you just use a control that supports paging?

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"Arne" <Ar**@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
I have an HTML table that is many pages long. How can I create a header
that
repeats on each printed page?
Is there a way within CSS to do that?


Dec 19 '05 #3
as always, there are various ways of doing this, depending on your
particular needs.

One way:

You can use javascript to insert a copy of your header row after every
x rows in your HTML table.
Then use CSS (style.pageBreakBefore="always") to set a page break
before every copy of the header
And use a CSS rule @media screen { .PrintOnly {display: none; }} to
hide the additional header rows on the screen

what UA are you using ? I have a simple HTC to do all this in case you
are using IE.

Another way to do the same thing is to modily your "onDataBound"
(assuming you're using a datagrid) to add those additional header rows
(Tricky, but doable).

This exercise becomes trivial If using a repeater, and almost scary if
using a datalist

Hope this helps
-- addup --

Dec 19 '05 #4
Sorry, I missed the "printed page" comment...

<%= Clinton Gallagher

"addup" <ad*****@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
as always, there are various ways of doing this, depending on your
particular needs.

One way:

You can use javascript to insert a copy of your header row after every
x rows in your HTML table.
Then use CSS (style.pageBreakBefore="always") to set a page break
before every copy of the header
And use a CSS rule @media screen { .PrintOnly {display: none; }} to
hide the additional header rows on the screen

what UA are you using ? I have a simple HTC to do all this in case you
are using IE.

Another way to do the same thing is to modily your "onDataBound"
(assuming you're using a datagrid) to add those additional header rows
(Tricky, but doable).

This exercise becomes trivial If using a repeater, and almost scary if
using a datalist

Hope this helps
-- addup --

Dec 19 '05 #5

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

Similar topics

6
by: Mitch | last post by:
I'm trying to use page inheritance so that I can derive all web pages from a template. There are a bunch of examples at this site http://authors.aspalliance.com/PaulWilson/Articles/?id=1, but...
0
by: Ramesh | last post by:
I am using a datalist control in my page and it has a header template. In the header template I have a table control with table rows and table cells. While the page is loading I am trying to change...
3
by: Angus SC2 | last post by:
Hi, I am writing a little web-app in Visual Studio.NET using C# and ASP.net. I have a few questions about page layouts. .. What I am trying to achieve is to have every page in my app like the...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
8
by: Radx | last post by:
Here in my web application, I have a data entry page with serval controls. Some of the controls have autopostback is set true. But the problem is when two or more people are entering data at the...
8
by: Marcel | last post by:
I have a problem with a PHP page that seems to get executed twice. I am running PHP5 ISAPI on 2003 server. The script is a PHP page with a form. When the form is submitted one record have to...
1
by: simbarashe | last post by:
Hie could someone please help me with getting and using the current page url. I have a function that gets the url, I want to use it with header(location : XXX) but it wont work. The code is as...
1
by: rsteph | last post by:
I've got some product information pages, with images and text, all setup within a table. I'm trying to add a small image in the upper right hand corner of the content div (where all the important...
1
by: soluvah | last post by:
Hello Folks, Been trying to widen my site's body from "779" to "1000" so it almost fills the window. IE 7 on windows XP just dismantles the pages and leaves wide gaps between the left column and...
5
by: smittie31 | last post by:
I am having a problem with a border around me html page. The border does not flow thru the whole html page, it cuts off halfway. --> See http://keithborom.com/marlon-sanders CSS STYLESHEET ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.