Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,
I want an image gallery in asp.net. I am using Datalist control to display an images. Everything will fine till now. Now my requirement is when we mouseover to the image the full image is displayed in the another Datasource control or repeater. Is It possible?
I want imagegallery look like this - http://www.rakindia.com/products.aspx?subcat=SW-0000702

Please give me any Suggestions.
Posted
Comments
Sergey Alexandrovich Kryukov 7-Apr-14 15:07pm    
The question is: why?
—SA
j snooze 7-Apr-14 17:58pm    
I don't see why not. Is your Datalist databound? I mostly use gridviews, but I assume same concept. If there is a row or item databound event you should be able to grab the control inside the datalist. It should call this for each record, you'll have to check if its a header row or datarow usually by checking the "e" event argument. Then do an piccontrol = e.findcontrol("picturecontrolname"). If it finds it, then put piccontrol.attributes.add("onmouseover","javascriptfunction()"). This is very rudimentary code and not exact syntax but concepts are here. Hope it helps.

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