Dynamic image in aspx

G

Guest

I have a Image control in an aspx page with a url static "http://localhost/dir/tmp/test.gif

This image changes every time the page is submited (the content not the name). When the page is showed in first time tha image is correct, but when is submited and the image content must change, the first is conserved as if it where in a buffer.

Can somebody help me?
 
B

Branimir Giurov

You can change the URL so it leads to an aspx page and on that page use
Response.BinaryWrite to output the image. Use session variables so you can
change the image that's being written or a POST request such as
http://localhost/dir/tmp/image.aspx?guid=[some guid goes here]

Hope that will help,
Branimir

--
Branimir Giurov
MCSD.NET, MCDBA


Andres Romero said:
I have a Image control in an aspx page with a url static "http://localhost/dir/tmp/test.gif"

This image changes every time the page is submited (the content not the
name). When the page is showed in first time tha image is correct, but when
is submited and the image content must change, the first is conserved as if
it where in a buffer.
 

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

Top