M
Mike Kansky
I have an image.aspx that does the following:
if request("s")=1 then
response.redirect(http://www.domain.com/image1.gif)
else
response.redirect(http://www.domain.com/image2.gif)
end if
And then i use it like that in my pages: <img src="images.aspx?s=1">
Now the question:
I do not like the way i do it, i think it is better and faster to do it by
using response.contenttype="image/gif" in image.aspx. Am i right?
if i am right could anyone give me an example of code? I found some examples
but they were getting the image from database and saving into the response
object.
How do i do the same with an URL image?
Thanks a lot!
if request("s")=1 then
response.redirect(http://www.domain.com/image1.gif)
else
response.redirect(http://www.domain.com/image2.gif)
end if
And then i use it like that in my pages: <img src="images.aspx?s=1">
Now the question:
I do not like the way i do it, i think it is better and faster to do it by
using response.contenttype="image/gif" in image.aspx. Am i right?
if i am right could anyone give me an example of code? I found some examples
but they were getting the image from database and saving into the response
object.
How do i do the same with an URL image?
Thanks a lot!