Click to See Complete Forum and Search --> : .net 2.0 problem


jabbarsb
11-15-2006, 08:51 AM
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

Phil Weber
11-15-2006, 09:51 AM
That code should work in .NET 2.0. What error message does it give you?