J.
|
Posted: 01/12/2004, 7:38 PM |
|
OK: Here is my scenario. I have a grid that includes Image_Links which reference a field in a DB that is a URL. The page works fine and displays the images I have linked in the DB. The page is setup where I have a main image, then a bunch of thumbnails under that image. What I want to do, is when someone clicks on a thumbnail it replaces the main image with the link to the larger image of the thumbnail. (All of these links are in the DB. Ex. main_image, image1_thumb, image1_large,etc. etc.).
Is this possible with ASP code? Basically I want to click on the the thumbnail and have a replace statement that replaces the main image with whatever thumbnail I just clicked on...make sense?
Thanks in advance.
J.
|
|
|
peterr
Posts: 5971
|
Posted: 01/12/2004, 8:49 PM |
|
Sounds like you may need to utilize some parameter within your links that would pass the image ID to the same page, then use the passed image ID to display the image that you need, for example within the Before Show event of your main imagel. For example, use a Label instead of the "main image", then use code similar to:
if IsEmpty(Request.QueryString("image_id")) then Label1.Value = "" else Label1.Value = "<img src=" & image1_large & ">"
(this is a very simplified example, as you may need to retrieve the appropriate image link from the database)
Though I admit that I don't understand everything you're doing in detail.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
Oper
Posts: 1195
|
Posted: 01/13/2004, 6:56 PM |
|
for a fast coding i will just created 2 Grid
1 Grind that read the id Image with only 1 Image Display
and other grid for the thumbail! the link on the thumbail is the same ASPpage but witl the IDimage value
well that what normaly i do: http://www.leidsa.com/Leidsa/Millonarios.asp
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
|
|
|