Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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
Old August 5th, 2004, 01:30 AM
Authorized User
Join Date: Feb 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mahulda
Default Print on Button Click

I want to add a button to my ASP.Net page which when clicked will evoke the File Print Command .

Can it be Done ?

-.. -..

-.. -..
Old August 5th, 2004, 02:50 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

This will have to be a client-side javascript event. I'm pretty sure there are some threads on this forum dealing with that. Or just look google "javascript" and "print".
Old August 5th, 2004, 02:50 PM
Authorized User
Join Date: Jun 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts

yep it can:
<button onclick="window.print()">print</button>


Gerhard Wentink

Similar Threads
Thread Thread Starter Forum Replies Last Post
on the click of a button how to load another form? amit_mande@yahoo.com VB.NET 2 September 12th, 2006 06:53 AM
Is it possible to button click Y/N in an email and kenn_rosie VB.NET 2002/2003 Basics 0 March 2nd, 2006 07:36 PM
Button Click ~Bean~ ASP.NET 1.0 and 1.1 Basics 2 September 27th, 2005 09:32 AM
Login Click Button mrideout BOOK: Beginning ASP.NET 1.0 6 August 12th, 2004 10:11 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.