Imaging in ASP.Net

  • Thread starter Thread starter Robin
  • Start date Start date
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?
 
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
 
Can the image source sent back to the client be made to not show the URL
that was used to create the image?
 
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.
 
Back
Top