Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.
' This code works if I request it from a button but the Protected Sub CheckBox_Select_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Dim cb As CheckBox Dim row As GridViewRow Dim contactCounter As Integer = 0 For Each row In GridView1.Rows cb = CType(row.FindControl("CheckBox_Select"), CheckBox) If cb.Checked Then contactCounter = contactCounter + 1 End If Next Label_contactsSelected.Text = contactCounter & " contacts selected" End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.