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. 4 1938
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******@bells outh.net> wrote in message
news:37******** *************** ***@posting.goo gle.com... 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.
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******** ********@tk2msf tngp13.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******@bells outh.net> wrote in message news:37******** *************** ***@posting.goo gle.com... 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.
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*******@hotm ail.com> wrote in message
news:es******** ******@tk2msftn gp13.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******** ********@tk2msf tngp13.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******@bells outh.net> wrote in message news:37******** *************** ***@posting.goo gle.com... 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.
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*******@hotm ail.com> wrote in message news:es******** ******@tk2msftn gp13.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******** ********@tk2msf tngp13.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******@bells outh.net> wrote in message news:37******** *************** ***@posting.goo gle.com... > 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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 this
which is in the site below :
|
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 and strange things is everything works
except I cannt see the result of query from database.
anyone has idea, please help me out, thanks in advance.
below is the code I have, there are several pages of code and I have
|
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?
http://www.post-gazette.com/interact/20000120radin.asp
Well… I'd like to warn/help the IE users of the issue before they
print page.
I want to combine a popup message with
|
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 example?
Thank you,
Simon
|
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 going to explain what I would like to do.
Clicking on the print button I would like to show immediately the print
dialog without open a new window with the text formatted for printing.
| |
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 document and
closes it with the following code:
<body onload="window.print(); window.close();">
This works correctly (or at least the way I expect it to work under MS
Internet Explorer, but it cuases Netscape to "crash"
|
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 very bad, because of background pictures and logo's,
list's etc.
|
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 first 3 rows in my Grid due to
they are links and I don't need to print the links out?
|
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 control..
i am go to run the page the treeview control to expand corresponding page target to iframe control..
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |