Author: sharepointmag | Posted on: 12/16/2009 5:03:51 PM | Views : 303

hi,

i have an GridView where i create three Bound Fields. In the First Field i inject in the RowDataBound Event an HTMLINPUTCHECKBOX. This seems to work fine. On my page, i can see the checkboxes and whne i look at the html i can even see the correct values of the checkboxes. Later on Button Click i loop through the Table rows and wants to read the values of the selected checkboxes. I cast them but get always object not referenced exception.

Whats wrong here? cant i cast an object which i injected manually  via rowdatabound before? What is wrong here?

Here is my code:


Protected Sub btnSelect_Click(ByVal sender As Object, ByVal e Go to the complete details ...