Something like <img src="image.asp?image=2"/> would simply be using an ASP
page as the source. Instead, write a method using Sub that will take a
parameter and write the desired image. I don't know what the names of your
image files are, but if they are image1.jpg, image2.jpg, imageX.jpg, etc.,
you could write something like:
<%
Sub ImageFile(filename_suffix)
Response.Write("<img src=" & Chr(34) & "image" & filename_suffix &
".jpg" & Chr(34) & " />")
End Sub
%>
And then use the following:
<%
ImageFile "1"
ImageFile "2"
ImageFile "X"
%>
To give the following output:
<img src="image1.jpg" />
<img src="image2.jpg" />
<img src="imageX.jpg" />
You will probably want to modify this code to your desire, and maybe put it
in a loop if you have a bunch of images like image1.jpg, image2.jpg,
image3.jpg, etc. that you would like next to each other. I hope this helps.
--
Nathan Sokalski
nj********@hotmail.com www.nathansokalski.com
"Jack Turner" <Jack@jt3k(nospammy).co.uk> wrote in message
news:f1*****************@text.news.blueyonder.co.u k...
Hi all,
Sorry if its been asked in here before but...
...how would i go about having an asp page send an image to the browser?
what i mean is instead of:
<img src="image.jpg"/>
I want:
<img src="image.asp?image=2"/>
Any idea's, pointers, url's would be appreciated, as google is firing
blanks.
Thanks in advance
--
Regards, Posting from:
Jack Turner? ¤Sunny Ol' Wolverhampton