Hello ya'll
Im creating a checkbox dynamically then I stick it on a panel. I give each one a unique id example: "chkLONDON"
Dim oObjCheckBox As CheckBox = New CheckBox()
oObjCheckBox.ID = "chk" + CType(dsCustomer.Tables(0).Rows(iCount).Item("LocName"), String)
oObjCheckBox.Text = CType(dsCustomer.Tables(0).Rows(iCount).Item("LocName"), String)
pnlLocs.Controls.Add(oObjCheckBox)
My problem now is, how do I see if that value is checked or not from my code. When I push my submit button I want to check if its cheked or not. I tried the following but it didn't work.
Dim oObjCheckBox As CheckBox = New CheckBox()
oObjCheckBox.ID = "chkLONDON"
If (oObjCheckBox.Checked) Then
'do some stuff
Else
Hope this makes sense
thnx