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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. move the list items between 2 listbox

move the list items between 2 listbox

Scheduled Pinned Locked Moved ASP.NET
asp-netcomhelptutorial
7 Posts 4 Posters 1 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.
  • P Offline
    P Offline
    pss srinivasan
    wrote on last edited by
    #1

    Hi i want to move 1 list box item to another list box. i am using this code http://www.codeproject.com/KB/aspnet/Listbox\_or\_combo\_box.aspx this is adding value to another list box , but after few seconds all the value removing automatically. i am using content page.there no post back also happening. plz any one tell how to solve the problem or give new idea.

    A S A 3 Replies Last reply
    0
    • P pss srinivasan

      Hi i want to move 1 list box item to another list box. i am using this code http://www.codeproject.com/KB/aspnet/Listbox\_or\_combo\_box.aspx this is adding value to another list box , but after few seconds all the value removing automatically. i am using content page.there no post back also happening. plz any one tell how to solve the problem or give new idea.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      pss.srinivasan wrote:

      this is adding value to another list box , but after few seconds all the value removing automatically.

      I guess it is due to the page refreshment. Is it clearing automatically or after some operation performed ?

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      P 1 Reply Last reply
      0
      • A Abhijit Jana

        pss.srinivasan wrote:

        this is adding value to another list box , but after few seconds all the value removing automatically.

        I guess it is due to the page refreshment. Is it clearing automatically or after some operation performed ?

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        P Offline
        P Offline
        pss srinivasan
        wrote on last edited by
        #3

        Is it clearing automatically,but i given break point in page load there cursor is not coming.

        A 1 Reply Last reply
        0
        • P pss srinivasan

          Is it clearing automatically,but i given break point in page load there cursor is not coming.

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          pss.srinivasan wrote:

          but i given break point in page load there cursor is not coming.

          I didn't get your point :confused:

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          P 1 Reply Last reply
          0
          • A Abhijit Jana

            pss.srinivasan wrote:

            but i given break point in page load there cursor is not coming.

            I didn't get your point :confused:

            Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

            P Offline
            P Offline
            pss srinivasan
            wrote on last edited by
            #5

            Page post back is not happening but item is clearing automatically.

            1 Reply Last reply
            0
            • P pss srinivasan

              Hi i want to move 1 list box item to another list box. i am using this code http://www.codeproject.com/KB/aspnet/Listbox\_or\_combo\_box.aspx this is adding value to another list box , but after few seconds all the value removing automatically. i am using content page.there no post back also happening. plz any one tell how to solve the problem or give new idea.

              S Offline
              S Offline
              sashidhar
              wrote on last edited by
              #6

              I think There is bug in code which he wrote..! Check this question..! Moving Items from one Listbox to another. Before implementing check the questions in the article..! i Suggest to try other code You will get many in google if you cant get ask us..!

              LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

              modified on Wednesday, November 18, 2009 2:07 AM

              1 Reply Last reply
              0
              • P pss srinivasan

                Hi i want to move 1 list box item to another list box. i am using this code http://www.codeproject.com/KB/aspnet/Listbox\_or\_combo\_box.aspx this is adding value to another list box , but after few seconds all the value removing automatically. i am using content page.there no post back also happening. plz any one tell how to solve the problem or give new idea.

                A Offline
                A Offline
                Abhishek Sur
                wrote on last edited by
                #7

                Hey, first of all.. If you are using only the code defined in the article, there is no possibility to get a page postback after a certain while. It is purely a javascript solution. How does it refresh the page automatically if you dont do this manually. If you want to hold data during postback, update a list in the server as well, might be in the session. Call your page using AJAX, may be using a handler / ICallBackEventHandler etc to do this. Another thing, in the javascript, dont use document.all as it is deprecated. Rather use document.getElementById always. var newOption = new Option(); // Create a new instance of ListItem Does this actually works ??? :confused: I would have created an option using document.createElement('option') rather. :rose:

                Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


                My Latest Articles-->** Simplify Code Using NDepend
                Basics of Bing Search API using .NET
                Microsoft Bing MAP using Javascript

                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