thank for your time:
I have this code:
Protected Sub Button_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button.Click Try Dim chk As CheckBox
For Each rowItem As GridViewRow In GridView1.Rows chk = DirectCast(rowItem.Cells(0).FindControl("chk1"), CheckBox)
' chk.checked will access the checkbox state value (on button click event)  If chk.Checked Then Response.Write(GridView1.DataKeys(rowItem.RowIndex)("Exporta").ToString() & "<br />") End If Next
Catch ex As Exception MsgBox(ex.Message) End Try
End Sub
this is the error:
              System.NullReferenceException: Object reference not set to an instance of an object.
Please help me.


...

Go to the complete details ...