View Single Post
Old 11-06-2003, 02:42 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
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
__________________
Mike
sde is offline   Reply With Quote