| | |
Send all items in a listBox to SQL server database table
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2005
Posts: 50
Reputation:
Solved Threads: 0
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.
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
- connecting to sql server database using C++ program (C++)
- Help needed: Connecting to sql server database (VB.NET)
- Connecting to a SQL Server Database using VB (VB.NET)
- Sql Server Database Connector (JSP)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- sql server connection (ASP)
Other Threads in the ASP.NET Forum
- Previous Thread: cannot to create project in Windows Server 2003 with Visual Studio.NET 2003
- Next Thread: Question about ASP.net. Pls HELP!
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox class click commonfunctions compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock deployment development dgv dropdownlist dropdownmenu dynamic edit embeddingactivexcontrol expose findcontrol flash flv formatdecimal forms formview gridview homeedition iframe iis javascript jquery list login menu microsoft mono mssql multistepregistration nameisnotdeclared numerical objects order panelmasterpagebuttoncontrols problem ratings rotatepage save schoolproject search security serializesmo.table silverlight smartcard sql sqlserver2005 ssl suse textbox tracking unauthorized validation vb.net video virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment webservice wizard xml youareanotmemberofthedebuggerusers





