473,324 Members | 2,541 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,324 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 1408
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.