| | |
How do i print asp page on client side "only the contents"
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2004
Posts: 89
Reputation:
Solved Threads: 1
Wel they way I use to print the whole page is by using the javascript to hide the things i dont want to appear on the print.
I use this javascript to hide the things, I pass the id of that particular HTML element whom i want to hide like the table, images etc...
Then you can call the print method to print the page.
I use this javascript to hide the things, I pass the id of that particular HTML element whom i want to hide like the table, images etc...
Then you can call the print method to print the page.
ASP Syntax (Toggle Plain Text)
function showhide(id) { var itm = null; if (document.getElementById) { itm = document.getElementById(id); } else if (document.all){ itm = document.all[id]; } else if (document.layers){ itm = document.layers[id]; } if (itm.style) { if (itm.style.display == "none") { itm.style.display = ""; } else { itm.style.display = "none"; } } }
![]() |
Similar Threads
- Batch print barcode in ASP.NET, C#, on client side (ASP.NET)
- What is server and client side code? (ASP.NET)
- Duplicating text automatically for each page (JavaScript / DHTML / AJAX)
- ASP locating file at client side (Windows NT / 2000 / XP)
Other Threads in the ASP Forum
- Previous Thread: Trusted connection in ASP with db
- Next Thread: Insert radio button value into MS Access database
Views: 9352 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for ASP
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile query record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit update web webserver windows7





