Send all items in a listBox to SQL server database table

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2005
Posts: 50
Reputation: Naters_uk is an unknown quantity at this point 
Solved Threads: 0
Naters_uk Naters_uk is offline Offline
Junior Poster in Training

Send all items in a listBox to SQL server database table

 
0
  #1
Jan 24th, 2006
Is it possible to save everything in a listbox into the SQL database table?

I was given a suggestion:
Allow MULTIPLE in select tag to make the user
select all/any of them or write Java Script code
to loop thru the length of select and append
them to a hidden variable. Then submit the
form.

For MULTIPLE use VBScript Split() function to break
on "," (comma).

However, my listbox is used to display values from buttons. A1, A2 etc. As such its not meant for users to select the items in the listbox. How do i save the values, A1, A2 etc displayed in the listbox directly into the SQL table without users selecting the items.

I would appreciate if there's guidance with codes.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC