Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ListView selected item problem

ListView selected item problem

Scheduled Pinned Locked Moved ASP.NET
helpcsharpdatabase
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Farraj
    wrote on last edited by
    #1

    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

    K 1 Reply Last reply
    0
    • F Farraj

      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

      K Offline
      K Offline
      ktrrzn
      wrote on last edited by
      #2

      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!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups