I'm trying to loop through it based on a query string. If the query string id matches the row id, then I want to set the checkbox to checked. Right now however, I'm just trying to output the row ID and I can't seem to get it. When I run this, it doesn't write anything. Any ideas why?
' Iterate through the Products.Rows property For Each row As GridViewRow In GridView1.Rows Response.Write(row.ID) '' Access the CheckBox 'Dim cb As CheckBox = row.FindControl("userCheck") If cb IsNot Nothing AndAlso cb.Checked Then
'Response.Write(row.ID) ' ' First, get the ProductID for the selected row ' Dim leadid As Integer = Convert.ToInt32(GridView1.DataKeys(row.RowIndex).Value) ' Dim sql = "UPDATE Leads SET CalledBack = 'yes' where LeadId = " & leadid ' MyFunctions.executeQuery(sql)