determine CheckBox's checkedChange status dynamically?

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
 
Y

Yunus Emre ALPÖZEN [MCAD.NET]

Just handle checkbox checked event. Close autopostback.
And let user to click a button and post back page to server.
 
G

Guest

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
 
G

Guest

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top