I am unable to update table when the users clicks on the register button. My code is listed below.
vb:
Would anyone have any ideas of why I am not getting the correct results?
Thank you in advance for looking.
vb:
Code:
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("CourseID"), Request.QueryString("SessionID"), uN, False) cb.Checked = False End If Next
Code:
<asp:TemplateField InsertVisible="False"> <ItemTemplate> <asp:CheckBox ID="ChkSelector" ViewStateMode="disabled" Checked="false" runat="server" /> </ItemTemplate> </asp:TemplateField>
Thank you in advance for looking.
Comment