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. asp:listbox move item by javascript

asp:listbox move item by javascript

Scheduled Pinned Locked Moved ASP.NET
javascriptquestion
5 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.
  • K Offline
    K Offline
    karanba
    wrote on last edited by
    #1

    Hi... I am try to do moveitems between two listbox to anothher using javascript. On page load these listbox getitems by databind to a datasource. But I could not reach listbox from javascript by using ids document.getElementById("listbox1") What can I do?

    karanba

    S M 2 Replies Last reply
    0
    • K karanba

      Hi... I am try to do moveitems between two listbox to anothher using javascript. On page load these listbox getitems by databind to a datasource. But I could not reach listbox from javascript by using ids document.getElementById("listbox1") What can I do?

      karanba

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      I think you are calling javascript before all the controls getting loaded .... where are you calling that javascript function can you elaborate ?

      K 1 Reply Last reply
      0
      • S Sandeep Akhare

        I think you are calling javascript before all the controls getting loaded .... where are you calling that javascript function can you elaborate ?

        K Offline
        K Offline
        karanba
        wrote on last edited by
        #3

        no. page is totally load when I made call

        karanba

        1 Reply Last reply
        0
        • K karanba

          Hi... I am try to do moveitems between two listbox to anothher using javascript. On page load these listbox getitems by databind to a datasource. But I could not reach listbox from javascript by using ids document.getElementById("listbox1") What can I do?

          karanba

          M Offline
          M Offline
          Mahesh Vaghela
          wrote on last edited by
          #4

          Hi Dear, Fiest of all please calrify if you are using master page or any user control. I this is the case please try to find the exact id of the control from view source. You have not mentioned in which event you are handling this code. Please provide some clarification regarding this.

          K 1 Reply Last reply
          0
          • M Mahesh Vaghela

            Hi Dear, Fiest of all please calrify if you are using master page or any user control. I this is the case please try to find the exact id of the control from view source. You have not mentioned in which event you are handling this code. Please provide some clarification regarding this.

            K Offline
            K Offline
            karanba
            wrote on last edited by
            #5

            default.master + default.aspx + asp:listbox1 + asp:listbox2 I use master page. The control is inside default.aspx and the id is listbox1 and listbox2. I use asp.net 2.0 c#. I both try to make enableviewstate true and false.

            karanba

            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