Mar 02
'clean up any previous data if present
'start with the checkboxes
Dim tblControl As HtmlTable = CType(checkBoxes.Controls(0), HtmlTable)
For Each control As System.Web.UI.Control In tblControl.Controls
If (TypeOf control Is System.Web.UI.HtmlControls.HtmlTableRow) Then
For Each rowControl As System.Web.UI.Control In control.Controls
If (TypeOf rowControl Is System.Web.UI.HtmlControls.HtmlTableCell) Then
For Each cellControl As System.Web.UI.Control In rowControl.Controls
If (TypeOf cellControl Is System.Web.UI.WebControls.CheckBox) Then
Dim chkBox As System.Web.UI.WebControls.CheckBox = CType(cellControl, System.Web.UI.WebControls.CheckBox)
chkBox.Checked = False
End If
Next
End If
Next
End If
Next


