hey jim,
i see a couple things wrong.
regarding your error:
it looks like you declared 'y', but did not instance it. try adding 'new' to the declaration.
Code:
Dim y As New System.Web.UI.WebControls.DataGridCommandEventArgs
however i think the logic here is wrong. if you are trying to do what the avr example does anyway.
in your vb.net example, you are passing in a variable named 'e' , and it looks like you are calling it with 'y'
i'm no vb expert ( more of a c# guy ) , and i'm not sure why you're passing vars in byval. try this:
Code:
Private Sub dgAttorney_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles dgAttorney.SelectedIndexChanged
String X = e.CommandName
Session("County") = e.Item.Cells(0).Text
Session("AttNo") = e.Item.Cells(1).Text
Response.Redirect("frmAttyDetail.aspx")
End Sub