Forum Moderators: open

Message Too Old, No Replies

Quick Asp Image Question

         

sithicus

8:25 pm on May 12, 2003 (gmt 0)

10+ Year Member



I could not find a more appropriate place to post this but it does regard asp. I'm made a page that has a main image and a bunch of small images, when you click on the small images it put it in the big image spot. No problem yet. Now, I made it so I can zoom in on the big image even more with a pop up page, no real problem there either.. the problem i'm having is that i need to make a template page in asp that say's hey load this image with this page. I'm not good with asp so i don't know how to do that part of it.

<a href="../products/enlargeImage.asp" onclick="imagePop(this.href + imageToEnlarge); return false;">

That is what the pop up code looks like.. can anybody tell me what the line of code in enlargeImage.asp that will get the imageToEnlarge to load in the popup win?

Any help would be great.
Thanks
-sith

Sinner_G

7:29 am on May 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not certain I got what you mean, but I would have the image on the main page linked this way:

<a href="../products/enlargeImage.asp?image=<%=Server.URLEncode(imagename)%>" target="_blank">

And then in the pop up:
image = Request.QueryString("image")

and

<img src="<%=image%>">