I am unable to update table when the users clicks on the register button. My code is listed below.
vb:
Dim retstruct As RegisterCourseInfo
Dim uN As String
For Each row As GridViewRow In GridView1.Rows
Dim cb As CheckBox = CType(GridView1.FindControl("ChkSelect"), CheckBox)
If cb IsNot Nothing AndAlso cb.Checked Then
uN = GridView1.DataKeys(row.RowIndex).Value
retstruct = RegisterCourseIndividual(Request.QueryString("Cour seID"), Request.QueryString("SessionID"), uN, False)
cb.Checked = False
End If
Next
Would anyone have any ideas of why I am not getting the correct resluts?
Thank you in advance for looking.