Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checkboxlist in detailveiw

Status
Not open for further replies.

vcllvc

Programmer
Jul 12, 2001
136
US
I have a detailview which contain a checkboxlist.
THe detailview is bound to a datasource which do the insertion.
When I hit the insert button, how can I get each checked item insert in the database?

Thanks in advance.
 
More info is needed. Where is the checkbox list, in a template column?
 
yes, it's in a template column.

The sqldatasource insert statement can insert the first checked item but not all the checked.

how can I get it to work?

thanks
 
You have to loop through each checkbox item in the checkbox list, and call the insert for each item when it is checked
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top