473,386 Members | 1,773 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,386 software developers and data experts.

printer friendly implementation

ST
Hi,

I'm implementing a printer friendly feature for all the pages on a web site.
I'm separating the header, content, and footer into separate ascx files,
which are contained in the main file. In the mail file I have a link button
which, supposedly, when clicked on, passes the current content page's url and
page title to the printer friendly page, which has a placeholder for the
content page. I could do this with session variables, but if I do it this
way, how do I make a function common to all to accomplish this? I can't use
a class file with session variables, so I'm trying to post all the content
pages to the printer friendly page but have had no luck so far. Can I use
javascript for this? Or can this be accomplished with code behind? Any
suggestions and/or comments will be greatly appreciated!

Sorry for the long message and thanks in advance!

-ST
Jul 21 '05 #1
4 1411
Hi

Please check the following article
http://authors.aspalliance.com/steve.../printview.asp

HTH
Ravikanth[MVP]

"ST" wrote:
Hi,

I'm implementing a printer friendly feature for all the pages on a web site.
I'm separating the header, content, and footer into separate ascx files,
which are contained in the main file. In the mail file I have a link button
which, supposedly, when clicked on, passes the current content page's url and
page title to the printer friendly page, which has a placeholder for the
content page. I could do this with session variables, but if I do it this
way, how do I make a function common to all to accomplish this? I can't use
a class file with session variables, so I'm trying to post all the content
pages to the printer friendly page but have had no luck so far. Can I use
javascript for this? Or can this be accomplished with code behind? Any
suggestions and/or comments will be greatly appreciated!

Sorry for the long message and thanks in advance!

-ST

Jul 21 '05 #2
Hi

Please check the following article
http://authors.aspalliance.com/steve.../printview.asp

HTH
Ravikanth[MVP]

"ST" wrote:
Hi,

I'm implementing a printer friendly feature for all the pages on a web site.
I'm separating the header, content, and footer into separate ascx files,
which are contained in the main file. In the mail file I have a link button
which, supposedly, when clicked on, passes the current content page's url and
page title to the printer friendly page, which has a placeholder for the
content page. I could do this with session variables, but if I do it this
way, how do I make a function common to all to accomplish this? I can't use
a class file with session variables, so I'm trying to post all the content
pages to the printer friendly page but have had no luck so far. Can I use
javascript for this? Or can this be accomplished with code behind? Any
suggestions and/or comments will be greatly appreciated!

Sorry for the long message and thanks in advance!

-ST

Jul 21 '05 #3
Another option that works in modern browsers that are at least mostly
standards-compliant (and that includes IE 6 which is how old now?) is to use
CSS to define a print style sheet. See
http://www.alistapart.com/articles/goingtoprint/ It's a much easier option
than the traditional method of launching a new page.

Colin

"ST" <ST@discussions.microsoft.com> wrote in message
news:80**********************************@microsof t.com...
Hi,

I'm implementing a printer friendly feature for all the pages on a web site. I'm separating the header, content, and footer into separate ascx files,
which are contained in the main file. In the mail file I have a link button which, supposedly, when clicked on, passes the current content page's url and page title to the printer friendly page, which has a placeholder for the
content page. I could do this with session variables, but if I do it this
way, how do I make a function common to all to accomplish this? I can't use a class file with session variables, so I'm trying to post all the content
pages to the printer friendly page but have had no luck so far. Can I use
javascript for this? Or can this be accomplished with code behind? Any
suggestions and/or comments will be greatly appreciated!

Sorry for the long message and thanks in advance!

-ST

Jul 21 '05 #4
Another option that works in modern browsers that are at least mostly
standards-compliant (and that includes IE 6 which is how old now?) is to use
CSS to define a print style sheet. See
http://www.alistapart.com/articles/goingtoprint/ It's a much easier option
than the traditional method of launching a new page.

Colin

"ST" <ST@discussions.microsoft.com> wrote in message
news:80**********************************@microsof t.com...
Hi,

I'm implementing a printer friendly feature for all the pages on a web site. I'm separating the header, content, and footer into separate ascx files,
which are contained in the main file. In the mail file I have a link button which, supposedly, when clicked on, passes the current content page's url and page title to the printer friendly page, which has a placeholder for the
content page. I could do this with session variables, but if I do it this
way, how do I make a function common to all to accomplish this? I can't use a class file with session variables, so I'm trying to post all the content
pages to the printer friendly page but have had no luck so far. Can I use
javascript for this? Or can this be accomplished with code behind? Any
suggestions and/or comments will be greatly appreciated!

Sorry for the long message and thanks in advance!

-ST

Jul 21 '05 #5

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

Similar topics

1
by: John Klucker | last post by:
Can anyone tell what easiest way to implement 'Printer Friendly' functionality to my .aspx page. Are there any controls available or is there something in the framework? Thanks in Advance!! ...
2
by: Ron | last post by:
Hello, I am working on a registration application for my companies intranet. The intranet is ASP classic based as of now. Unfortunately I only know ASP.NET. But that was all okay until I decided I...
2
by: Sandy | last post by:
Hello - I tried to google this, but got back every page on the whole entire web that has printer friendly versions . . . I have a panel containing text from a repeater that also contains text...
2
by: ST | last post by:
Hi, I'm implementing a printer friendly feature for all the pages on a web site. I'm separating the header, content, and footer into separate ascx files, which are contained in the main file. ...
1
by: dinoo | last post by:
Can any one help me out? I am looking out to implement printer friendly version of a web page. I do not want the header and footer show up in the print and I do not want to use frames (it is a...
2
by: weetat.yeo | last post by:
Hi all , I have a print button in PHP page which using javascript window.print() to print web page. However , when user click "print" , the print preview display that the page cut-off and...
5
by: weetat.yeo | last post by:
Hi all , I have php page which the data in the page are extracted from MYSQL database. The data are retrieved when user click submit button . In the php page , there is a print button for user...
1
by: tbanov | last post by:
Hi, I'm looking to create my own version of a printer-friendly page. Any resources I can find on this subject are extremely specific about what they consider "printer-friendly", and they don't...
15
by: Prisoner at War | last post by:
Okay, I'd like to create a print-friendly website, so I've been reading up on how to create print-friendly pages (without duplicating my site, of course, by having separate versions of each...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.