944,110 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 6784
  • ASP.NET RSS
Jan 24th, 2006
0

Send all items in a listBox to SQL server database table

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Naters_uk is offline Offline
50 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: cannot to create project in Windows Server 2003 with Visual Studio.NET 2003
Next Thread in ASP.NET Forum Timeline: Question about ASP.net. Pls HELP!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC