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. shifting items in b/w list boxes

shifting items in b/w list boxes

Scheduled Pinned Locked Moved ASP.NET
javascriptsysadmintoolshelpquestion
4 Posts 3 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.
  • A Offline
    A Offline
    azam316
    wrote on last edited by
    #1

    hi, i have 2 list boxes on my aspx page. i need to have a functionality that, whenever a user double clicks an item on any of the list boxes, it shifts to the other one. i am using a javascript for this purpose as there is no double click event provided. the script is working and the items do shift. but when a server web control such as a button is clicked, all shiftings made by double clicking revert. please help me. do i need to use viewstate? if i do, can anyone tell me how? if there is another way please do tell me! thanx in advance ☺«««DTA»»»☺

    C N 2 Replies Last reply
    0
    • A azam316

      hi, i have 2 list boxes on my aspx page. i need to have a functionality that, whenever a user double clicks an item on any of the list boxes, it shifts to the other one. i am using a javascript for this purpose as there is no double click event provided. the script is working and the items do shift. but when a server web control such as a button is clicked, all shiftings made by double clicking revert. please help me. do i need to use viewstate? if i do, can anyone tell me how? if there is another way please do tell me! thanx in advance ☺«««DTA»»»☺

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Are you doing your loading of the items inside a !IsPostback block, so that you don't reload them in their original position on postback, thus losing the positions they had coming in from the client ? Christian Graus - Microsoft MVP - C++

      A 1 Reply Last reply
      0
      • A azam316

        hi, i have 2 list boxes on my aspx page. i need to have a functionality that, whenever a user double clicks an item on any of the list boxes, it shifts to the other one. i am using a javascript for this purpose as there is no double click event provided. the script is working and the items do shift. but when a server web control such as a button is clicked, all shiftings made by double clicking revert. please help me. do i need to use viewstate? if i do, can anyone tell me how? if there is another way please do tell me! thanx in advance ☺«««DTA»»»☺

        N Offline
        N Offline
        NeverHeardOfMe
        wrote on last edited by
        #3

        Have a look at this http://www.metabuilders.com/Tools/DualList.aspx[^] Maybe this is what you need. cheers Phil

        1 Reply Last reply
        0
        • C Christian Graus

          Are you doing your loading of the items inside a !IsPostback block, so that you don't reload them in their original position on postback, thus losing the positions they had coming in from the client ? Christian Graus - Microsoft MVP - C++

          A Offline
          A Offline
          azam316
          wrote on last edited by
          #4

          yes. i am loading the items in the !IsPostback Block. am i doing something wrong here? plz tell me u have a solution thanx ☺«««DTA»»»☺

          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