G
Guest
I have a database table of x elements. I need to loop through the database
table and add a checkbox for each entry to an asp:Table object. This I can
do.
Dim tRow As New TableRow
Dim tCell As New TableCell
Dim cbDT As New CheckBox
tblDTCodes.Rows.Add(tRow)
cbDT.Text = reader(0)
cbDT.Checked = False
tCell.Controls.Add(cbDT)
tRow.Cells.Add(tCell)
Question: How do I add a "Clicked" or "Checked" event to these new
checkboxes?
Question: If I can't do that, how do I interpret a PostBack from these
checkboxes?
table and add a checkbox for each entry to an asp:Table object. This I can
do.
Dim tRow As New TableRow
Dim tCell As New TableCell
Dim cbDT As New CheckBox
tblDTCodes.Rows.Add(tRow)
cbDT.Text = reader(0)
cbDT.Checked = False
tCell.Controls.Add(cbDT)
tRow.Cells.Add(tCell)
Question: How do I add a "Clicked" or "Checked" event to these new
checkboxes?
Question: If I can't do that, how do I interpret a PostBack from these
checkboxes?