Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Checkboxlist and database - Input needed

Thread Tools

Checkboxlist and database - Input needed

Posts: n/a

Would this work: Trying to insert selected checkboxlist values into

For iBio = 0 To CheckBoxList1.Items.Count - 1
If CheckBoxList1.Items(iBio).Selected Then
sqlinsert = "INSERT INTO tProposal_x_manager (doc_num, manager_id)
sqlinsert = sqlinsert & doc_num & ","
sqlinsert = sqlinsert & CheckBoxList1.Items(iBio).Value & ")"
End If
Next iBio

Would this work - or would these values have to be stored as string and
parsed and inserted into database?

many thanks

*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase Computer Information 0 09-26-2012 09:40 AM
Checkboxlist inside Repeater - doesn't fire click event for Checkboxlist JD ASP .Net 5 08-08-2007 11:28 AM
How to get Selected item in a Databinded CheckBoxList when CheckBoxlist is in a DataList? Patrick.O.Ige ASP .Net 5 06-19-2005 06:11 AM
inserting Checkboxlist input into database wjer ASP .Net 1 03-02-2004 06:26 AM