Imaging in ASP.Net

R

Robin

I am using a separate aspx page that renders the graphics output to the
response.outputstream that takes a value from a session variable. In the
page that calls the image generation page twice setting the session variable
before setting the imageurl it displays both images but using the value set
for the last image.

How do you call an image output page more than once from another web page
passing different values?
 
K

Kevin Spencer

If I understand you correctly, you're basically asking how to display more
than one image in a Page from the same image-rendering page, but getting
different versions of the image rendered? One solution we came up with is to
use a QueryString in the URL. The image-rendering page looks at the
QueryString, and acts accordingly. Example:

<img src="imagemaker.aspx?bgcolor=black&height=50&width=75">

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 
R

Robin

Can the image source sent back to the client be made to not show the URL
that was used to create the image?
 
K

Kevin Spencer

Can the image source sent back to the client be made to not show the URL
that was used to create the image?

That would be more complicated, but possible. It would require a POST
request, rather than a GET, which means that somehow, your form would have
to do a POST operation in order to generate the images.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top