determine CheckBox's checkedChange status dynamically?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an array of CheckBoxes which dynamically display in a web form.
How to detect and determine which CheckBox' check status changed? For
example,
Array(i, j) from checked to Unchecked and Array(k,j) from unchecked to
checked.

Thank you.

David
 
Just handle checkbox checked event. Close autopostback.
And let user to click a button and post back page to server.
 
What does it look like? Does the following work?

Private Sub CheckBox_CheckedChanged(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles _
CheckBox.CheckedChanged
................
End Sub

David
 
It is not compiled, since in the statement
"Handles CheckBox.CheckedChanged "
CheckBox is unknown. Because I have dynamically declared the array of
checkboxes, so the idenfiers of those checkboxes are not predefined.

David
 

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

Back
Top