 |
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

September 14th, 2004, 06:20 AM
|
Authorized User
|
|
Join Date: Sep 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Print web page withiout printing url footer
I want ot print a web page but it should not print the footer url address and header
:(
rekha
__________________
It is always safe to assume, not that the old way is wrong, but that there may be a better way...
*************************
Rekha
|

September 14th, 2004, 07:26 PM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
Rekha,
I think these things are set on the client browser.
======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
|

September 14th, 2004, 07:55 PM
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Add to the elements that you don't want printed the attribute class='noPrint'.
Then add a link tag in the head of the page like this:
<link href='print.css' type='text/css' rel='stylesheet' media='print'/>
And in print.css:
.noPrint { display: none; }
HTH,
-Snib <><
http://www.snibworks.com/
|

September 15th, 2004, 10:26 PM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Snib, I believe Rekha is referring to removing header and footer on her client browser before printing the page.
Rekha,
If I am right, go here.
On your browser, File >> Page Setup
Remove &w&bPage &p of &P from HEADER and &u&b&d from FOOTER. Then go for print.
Hope that helps.
Cheers!
_________________________
- Vijay G
Strive for Perfection
|

September 15th, 2004, 10:47 PM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
Yeah, Sorry that is what I meant to say.
You can change for yourself but not for all users who use the web app.
======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
|
|
 |