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

Print friendly page

Hi,

I have a asp .net/VB web app that does the typical submitting and
retrieving from a SQL database. I am lost as to how I should create a
print friendly page for the data. Here is the situation. The user is
looking at a page with Text, asp .net controls, and buttons. I want
the user to be able to hit a print friendly button and a new window
will open, but this new window will have only plain text. Database
fields -- and database values. I need to build this page somehow, and
it would be great if I could reference the values in the exisiting
form instead of calling to the database again. Right?

Thanks all.
Nov 18 '05 #1
4 1921
This is the sort of place where session comes handy. Store the data that you
would like to reuse in Sessio object(s) and then load your printer friendly
page.
server side printer friendlly code.. read those session values and off you
go

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Matt Mercer" <ma******@bellsouth.net> wrote in message
news:37**************************@posting.google.c om...
Hi,

I have a asp .net/VB web app that does the typical submitting and
retrieving from a SQL database. I am lost as to how I should create a
print friendly page for the data. Here is the situation. The user is
looking at a page with Text, asp .net controls, and buttons. I want
the user to be able to hit a print friendly button and a new window
will open, but this new window will have only plain text. Database
fields -- and database values. I need to build this page somehow, and
it would be great if I could reference the values in the exisiting
form instead of calling to the database again. Right?

Thanks all.

Nov 18 '05 #2
Also,

You dont have to store those values in session unless ans until the user
clicks the "print friendly button".
You cant handle that in the click event handler. And, after loading the
other page with the session stored information you can Remove those values
created in session. Just to keep everything cleaned up.

Just a thought.

Jeff B
je***@aaon.com
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
This is the sort of place where session comes handy. Store the data that you would like to reuse in Sessio object(s) and then load your printer friendly page.
server side printer friendlly code.. read those session values and off you
go

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Matt Mercer" <ma******@bellsouth.net> wrote in message
news:37**************************@posting.google.c om...
Hi,

I have a asp .net/VB web app that does the typical submitting and
retrieving from a SQL database. I am lost as to how I should create a
print friendly page for the data. Here is the situation. The user is
looking at a page with Text, asp .net controls, and buttons. I want
the user to be able to hit a print friendly button and a new window
will open, but this new window will have only plain text. Database
fields -- and database values. I need to build this page somehow, and
it would be great if I could reference the values in the exisiting
form instead of calling to the database again. Right?

Thanks all.


Nov 18 '05 #3
true again.. but if he just wants to make one call he will need to set it
before the current page is rendered.
well viewstate can also be used. but i agree on clean up... remove
everything you are not using

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Jeff B" <je*******@hotmail.com> wrote in message
news:es**************@tk2msftngp13.phx.gbl...
Also,

You dont have to store those values in session unless ans until the user
clicks the "print friendly button".
You cant handle that in the click event handler. And, after loading the
other page with the session stored information you can Remove those values
created in session. Just to keep everything cleaned up.

Just a thought.

Jeff B
je***@aaon.com
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
This is the sort of place where session comes handy. Store the data that

you
would like to reuse in Sessio object(s) and then load your printer

friendly
page.
server side printer friendlly code.. read those session values and off you go

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Matt Mercer" <ma******@bellsouth.net> wrote in message
news:37**************************@posting.google.c om...
Hi,

I have a asp .net/VB web app that does the typical submitting and
retrieving from a SQL database. I am lost as to how I should create a
print friendly page for the data. Here is the situation. The user is
looking at a page with Text, asp .net controls, and buttons. I want
the user to be able to hit a print friendly button and a new window
will open, but this new window will have only plain text. Database
fields -- and database values. I need to build this page somehow, and
it would be great if I could reference the values in the exisiting
form instead of calling to the database again. Right?

Thanks all.



Nov 18 '05 #4
how about creating a printer friendly stylesheet. When the user clicks print
you use the printer friendly styelsheet.
why save anything in session, use a new CSS.

http://www.411asp.net/ has some examples on this

"Hermit Dave" wrote:
true again.. but if he just wants to make one call he will need to set it
before the current page is rendered.
well viewstate can also be used. but i agree on clean up... remove
everything you are not using

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Jeff B" <je*******@hotmail.com> wrote in message
news:es**************@tk2msftngp13.phx.gbl...
Also,

You dont have to store those values in session unless ans until the user
clicks the "print friendly button".
You cant handle that in the click event handler. And, after loading the
other page with the session stored information you can Remove those values
created in session. Just to keep everything cleaned up.

Just a thought.

Jeff B
je***@aaon.com
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
This is the sort of place where session comes handy. Store the data that

you
would like to reuse in Sessio object(s) and then load your printer

friendly
page.
server side printer friendlly code.. read those session values and off you go

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Matt Mercer" <ma******@bellsouth.net> wrote in message
news:37**************************@posting.google.c om...
> Hi,
>
> I have a asp .net/VB web app that does the typical submitting and
> retrieving from a SQL database. I am lost as to how I should create a
> print friendly page for the data. Here is the situation. The user is
> looking at a page with Text, asp .net controls, and buttons. I want
> the user to be able to hit a print friendly button and a new window
> will open, but this new window will have only plain text. Database
> fields -- and database values. I need to build this page somehow, and
> it would be great if I could reference the values in the exisiting
> form instead of calling to the database again. Right?
>
> Thanks all.



Nov 18 '05 #5

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

Similar topics

10
by: techy techno | last post by:
Hiii Hello.. I just wanted to know if anyone can tell me how can I give my website visitors the feature of "FRIENDLY PRINTING" through IE. I would definitely like to give a feature like...
1
by: weiwei | last post by:
HI I am having a problem with print friendly function with asp, I have download some code regard with print friendly, it works fine with static html information, however, I have the dynamic pages...
4
by: Fred | last post by:
I'm a newbie to JavaScript so be gentle. You know that funky IE margin issue that causes the right side of the page to get cut off when the user prints the html document?...
2
by: simon | last post by:
When user click the print button, I would like to read page stream, remove from it the parts I don't won't to print and then show him the printer friendly page. How can I do that? Any...
1
by: BELIUS | last post by:
Hi all, I am implementing a "Print this Page" function in my ASP.NET application. This function should print a part of the page and I would like to use an MSDN Style "Print this Page". I'm...
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
4
by: Axford | last post by:
Hello, does anybody have an example on how to add a hidden frame to an aspx page and then to use thtat hidden frame to print a user friendly version of the web page? The web page does print...
4
by: CSharpguy | last post by:
My web app is using master pages, On the content page I'm using a GridView. I need to print my GridView and I need to exclude the HyperLink columns. How can I print my content page and exclude the...
0
by: thirunavukarasukm | last post by:
Hai... Problem in Print Friendly Version with treeview control... i am creating one web applications.. in this web application in main page The left side one panel and right side one Iframe...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.