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. multiple selection listbox

multiple selection listbox

Scheduled Pinned Locked Moved ASP.NET
helpdatabasecsharpjavascriptquestion
3 Posts 2 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.
  • K Offline
    K Offline
    Kunal P
    wrote on last edited by
    #1

    hi i am developing a web basec app in c# using visual web dev i have a listbox, that fills up dynamically on selection of a value of a drop down list. now.. the items that are displayed in the listbox have multiple selection property.. Now on the click of the SUBMIT button.. i want all these selected items to be stored in a database.. obviously... i want an upper limit for the same. now the items that are saved in the table were retrieved from another table..(using drop down box)... PROBLEM wat i want to ask is.. that how would i save the listbox items into the the table.. query???? secondly.. wen these items would be saved.. how would i retrieve their corresponding details from the other table. thirdly.. any help in javascript to fix the upper limit.. need at client side..

    Kunal Piyush

    H 1 Reply Last reply
    0
    • K Kunal P

      hi i am developing a web basec app in c# using visual web dev i have a listbox, that fills up dynamically on selection of a value of a drop down list. now.. the items that are displayed in the listbox have multiple selection property.. Now on the click of the SUBMIT button.. i want all these selected items to be stored in a database.. obviously... i want an upper limit for the same. now the items that are saved in the table were retrieved from another table..(using drop down box)... PROBLEM wat i want to ask is.. that how would i save the listbox items into the the table.. query???? secondly.. wen these items would be saved.. how would i retrieve their corresponding details from the other table. thirdly.. any help in javascript to fix the upper limit.. need at client side..

      Kunal Piyush

      H Offline
      H Offline
      haggenx
      wrote on last edited by
      #2

      Hi! Well, you should read these listbox item by item and load the selected items in a array, then send this array element by element to the table in the database using sql statements.

      Manuel say: Greetings from Mexico, Cuando salga el sol, no estare aqui... --------------------------------------- Web: http://www.otakuzone-fanzine.com Forum: http://www.otakuzone-fanzine.com/foro

      K 1 Reply Last reply
      0
      • H haggenx

        Hi! Well, you should read these listbox item by item and load the selected items in a array, then send this array element by element to the table in the database using sql statements.

        Manuel say: Greetings from Mexico, Cuando salga el sol, no estare aqui... --------------------------------------- Web: http://www.otakuzone-fanzine.com Forum: http://www.otakuzone-fanzine.com/foro

        K Offline
        K Offline
        Kunal P
        wrote on last edited by
        #3

        i tried a lot, but no luck i initialized a string type array with size 6. string[] items = new string; now how should i connect it with the listbox items.

        Kunal Piyush

        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