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. list box and text box in asp.net

list box and text box in asp.net

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

    Hi all, I want to know how to drag an item in the list box and drop into the text box (which already have text inside). If drag and drop is not available in asp.net, how to put a listbox item to the text box. Please answer my questions. Thanks in advance!

    A C D 3 Replies Last reply
    0
    • P panyaung

      Hi all, I want to know how to drag an item in the list box and drop into the text box (which already have text inside). If drag and drop is not available in asp.net, how to put a listbox item to the text box. Please answer my questions. Thanks in advance!

      A Offline
      A Offline
      anilpal
      wrote on last edited by
      #2

      Hi, First of all drag and drop facility is not available in asp.net. Now u want to drag listbox itme to textbox, which also have some text already. Now here i would like to know wharts yr wexact requirement. Can u use another listbox in place of textbox? If yes, then i can provide u a easy solution for that. If no, then how u r going to display the text in textbox (Including the mulitple listbox items)? feel free to ask

      Regards Anil Pal

      P 1 Reply Last reply
      0
      • P panyaung

        Hi all, I want to know how to drag an item in the list box and drop into the text box (which already have text inside). If drag and drop is not available in asp.net, how to put a listbox item to the text box. Please answer my questions. Thanks in advance!

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

        You can do drag and drop, but it's lots of javascript. There are examples on the web.

        Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

        P 1 Reply Last reply
        0
        • P panyaung

          Hi all, I want to know how to drag an item in the list box and drop into the text box (which already have text inside). If drag and drop is not available in asp.net, how to put a listbox item to the text box. Please answer my questions. Thanks in advance!

          D Offline
          D Offline
          Dev S
          wrote on last edited by
          #4

          Hi, I hav a better alternate: you can do it by keeping a button near your listbox and poitning towards your textbox. And after selecting the desired item from listbox click on the button to move it to textbox. And at the same time remove that item from your listbox. So it will give the feeling as if it is oved from listbox to textbox.

          P 1 Reply Last reply
          0
          • D Dev S

            Hi, I hav a better alternate: you can do it by keeping a button near your listbox and poitning towards your textbox. And after selecting the desired item from listbox click on the button to move it to textbox. And at the same time remove that item from your listbox. So it will give the feeling as if it is oved from listbox to textbox.

            P Offline
            P Offline
            panyaung
            wrote on last edited by
            #5

            Hi, Thanks for your answer. I also have same idea with you and I am testing it now. But there's another problem. I can put the list box item to text box but if the text are already existed in the text box, the previous text will be disappeared. I want to insert between other text. Any other idea?

            1 Reply Last reply
            0
            • A anilpal

              Hi, First of all drag and drop facility is not available in asp.net. Now u want to drag listbox itme to textbox, which also have some text already. Now here i would like to know wharts yr wexact requirement. Can u use another listbox in place of textbox? If yes, then i can provide u a easy solution for that. If no, then how u r going to display the text in textbox (Including the mulitple listbox items)? feel free to ask

              Regards Anil Pal

              P Offline
              P Offline
              panyaung
              wrote on last edited by
              #6

              Hi, Thanks for your answer. What I really wanna do is to put the list box item to the textbox (which already have text there). I am testing with alternative way now. I try to put list box item to text box when i click on a button. But I still cannot put the item between other text. If you have some more idea, pls drop me a line.

              1 Reply Last reply
              0
              • C Christian Graus

                You can do drag and drop, but it's lots of javascript. There are examples on the web.

                Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

                P Offline
                P Offline
                panyaung
                wrote on last edited by
                #7

                Yeah, I have some examples of javascript for drag and drop. But I want to use javascript if there's no other options coz I am very new to that.

                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