So, you want to retrieve the values from your dynamically created textboxes. You'll want to do something like this:
For Each i As DataGridItem In grdInspections.Items
Dim litInspID As Literal = i.FindControl("litInspID")
Dim chkInspBill As CheckBox = i.FindControl("chkInspBill")
Dim Inspection As New Inspection(_oConn, litInspID.Text)
Inspection.InspBill = chkInspBill.Checked
Inspection.Save()
Next
Hope that gets you started in the right direction.
Richard
|