Re: disable buttons when printing an asp page
From: Aaron Bertrand [MVP] (aaron_at_TRASHaspfaq.com)
Date: 04/30/04
- Next message: Joey Martin: "improving performance"
- Previous message: Kevin MacDonald: "ASP fails to import typelib using METADATA tag when debugging"
- In reply to: Rahul Chatterjee: "disable buttons when printing an asp page"
- Next in thread: Roland Hall: "Re: disable buttons when printing an asp page"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 14:17:34 -0400
You can use style sheets to render them invisible for print but visible for
screen display. Not ASP-related, btw; please follow up in an HTML or CSS
newsgroup.
http://www.w3.org/TR/REC-CSS2/media.html
-- Aaron Bertrand SQL Server MVP http://www.aspfaq.com/ "Rahul Chatterjee" <rahul@benesysinc.com> wrote in message news:ewbru7tLEHA.2244@tk2msftngp13.phx.gbl... > Hello All > > I have a web page which is a confirmation page giving a receipt. I have a > couple of buttons on that page - one of them is a print button which is a > javascript:window.print() command on the onClick event. The problem I am > facing is that it prints the page along with the buttons. Is there any way > to disable the printing of the buttons through the code itself. Also is > there any way to disable the header and footer url and titles that print. > I > know we can do this through the settings on the print control but I dont > want the user to have to do this. When they print I want them to be able > to > just print the confirmation page minus the command buttons and the URL's > etc. > > > Also is there any way to disable the browser back arrow function on this > page only. > > Please advise > > Thanks > >
- Next message: Joey Martin: "improving performance"
- Previous message: Kevin MacDonald: "ASP fails to import typelib using METADATA tag when debugging"
- In reply to: Rahul Chatterjee: "disable buttons when printing an asp page"
- Next in thread: Roland Hall: "Re: disable buttons when printing an asp page"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|