what is wrong with this code

G

Guest

I'm trying to determine of the checkbox is checked within my datalist and i
keep getting false returned if its checked or not.


public sub btnDetails_Click()

Dim i As Integer
Dim cars As DataListItem
Dim cSelection As CheckBox
For Each carsIn dlCars.Items
cSelection = dlCars.Items(i).FindControl("chkCars")
Response.Write(cSelection.Checked.ToString & ",")
Next

end sub
it keeps returning false
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top