hi friends,
i am having a small problem i used to write a particular block of code in .net 1.1 its not supporting in .net 2.0 following is the code
Dim item As DataGridItem
For Each item In Dg1.Rows
Dim pageId As Integer = CInt(Dg1.DataKeys(item.ItemIndex))
Dim chkProgress As CheckBox = item.FindControl("chk_CanAccess")
Next

how shall i write this code in .net 2.0

regards jabbar