Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > HTML overwritten by Response.OutputStream.Write

Reply
Thread Tools

HTML overwritten by Response.OutputStream.Write

 
 
Richard
Guest
Posts: n/a
 
      01-02-2004
I'm working on a site that creates mailing labels. When a label is
generated, two things happen in the background with the image.

First, it is saved as a smaller low-quality .gif on the server and
then presented as a preview using an img tag (also later used for a
history feature on the site).

Second, when the user clicks on the image, a new window appears with
only the mailing label as a high-quality .png graphic. I don't save
the .png image to conserve hardrive space, so I use
response.outputstream.write to output the image array. I do this
because it is important to have crisp barcodes on the labels.

The problem is that by doing this, the html in the aspx file isn't
sent to the client, just the image. I would like to use
window.print() on the client side. I tried using
Page.RegisterStartUpScript; it runs, but isn't output to the user no
matter if it is ran before or after the OutputStream.

Anyone else seen a similar problem?

Is there a way to display an image that is in server memory to an
image tag?
 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      01-02-2004
Richard wrote:
> The problem is that by doing this, the html in the aspx file isn't


This is a classic asp newsgroup. While you may be lucky enough to find a
dotnet-savvy person here who can answer your question, you can eliminate the
luck factor by posting your question to an appropriate group. I suggest
microsoft.public.dotnet.framework.aspnet.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SAX parser: problems with overwritten characters method leo Java 1 04-13-2005 02:26 PM
Session data overwritten when using two browser instances (CTR+N) Arnt O. Kvannefoss ASP .Net 6 04-08-2005 09:17 AM
Overwritten method has no access to local variable if it contains field data Daniel Java 5 07-22-2004 09:11 AM
Overwritten resource file Gawel ASP .Net 0 05-18-2004 05:41 PM
Variables are overwritten when another person logs in Remco Groot Beumer ASP .Net 2 11-05-2003 06:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57