ListView selected item problem
-
Hello, im trying to build a gallery using C#. Ii've made a Listview showing photos from database as thumbnails in a "kind of a film strip", including a pager. What i need is that when i click on a thumbnail inside the ListView, to show the large photo in a image control outside the listview. this should work using the selectedIndexChanged event, i have no idea what to do in there, i will appreciate any help since i searched a lot online and didnt find anything helpful. thank you, Basil
-
Hello, im trying to build a gallery using C#. Ii've made a Listview showing photos from database as thumbnails in a "kind of a film strip", including a pager. What i need is that when i click on a thumbnail inside the ListView, to show the large photo in a image control outside the listview. this should work using the selectedIndexChanged event, i have no idea what to do in there, i will appreciate any help since i searched a lot online and didnt find anything helpful. thank you, Basil
Hi Farraj, As far as i know, you can use CSS[^] to get this functionality. There is some example and tutorial on Google[^]. if ur intention is only want to display what u selected. u can do that easily with CSS without post back. give all image control from list view to same CssClass name. then from css style sheet. change the image of outside frame. you can get a lot of jQuery[^] example for this.. Hope it works!