Click here to Skip to main content
15,924,553 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am displaying my images in a gallery format with 7 columns and 3 rows using the datalist web control. The images, along with the image title and the category the image comes from are retrieved from a database. But only the image is displayed as above. How can I make the images clickable and when the Image is clicked a popup window is opened with the Image in it, the category the image comes from and the image title.
Thanks
Posted
Updated 7-Apr-10 5:25am
v3

1 solution

You can handle this with some javascript event.

<img src="..." click=window.open(...) />

More sophisticated approaches would involve create a div to use as the popup and displaying it when the image is clicked.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900