| | |
checkboxlist
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2009
Posts: 3
Reputation:
Solved Threads: 0
hi !
i have made some code for a checkboxlist the items if are selected or not,and then to put them in my database.but im having a problem.even if i select my items they always apears unselected .
'ckbox.selected' never becomes true,so never pass ' objBLRegjistrimi.fnbooksubject(txtISBN.Text, chbl.SelectedValue)'
i don't know why this happens.
thank you
i have made some code for a checkboxlist the items if are selected or not,and then to put them in my database.but im having a problem.even if i select my items they always apears unselected .
ASP.NET Syntax (Toggle Plain Text)
Dim ckbox As ListItem For Each ckbox In chbl.Items If ckbox.Selected = True Then objBLRegjistrimi.fnbooksubject(txtISBN.Text, chbl.SelectedValue) End If Next
'ckbox.selected' never becomes true,so never pass ' objBLRegjistrimi.fnbooksubject(txtISBN.Text, chbl.SelectedValue)'
i don't know why this happens.
thank you
Change
to
I think that's what you want.
HTH
If ckbox.Selected = True Then to
If ckbox.Checked Then I think that's what you want.
HTH
Teme64 @ Windows Developer Blog
![]() |
Similar Threads
- vb.net Saving Checkboxlist checked items to database (ASP.NET)
- Add value manually into DropDownList, CheckBoxList and RadioButtonList. (ASP.NET)
- Add vertical scroll bar to a table (HTML and CSS)
- show item in panel (VB.NET)
- How to store multiple selection? (VB.NET)
- short (ASP.NET)
- Count number of checkboxes being checked in asp.net (ASP)
- drop down list (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: 404 error in subtext blog
- Next Thread: ASP.Net Project
| Thread Tools | Search this Thread |
.net activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox click commonfunctions control css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iframe iis javascript listbox login microsoft mono mouse mssql multistepregistration news novell numerical objects opera panelmasterpagebuttoncontrols radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visualstudio web webapplications webdevelopemnt webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers





