Link to home
Start Free TrialLog in
Avatar of VBdotnet2005
VBdotnet2005Flag for United States of America

asked on

gridview

On Datakeyname in Gridview properties, I have "cid, firstname"), but why this won't work?



    Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged


        Dim idNum As String = Me.GridView1.SelectedDataKey.Value("cid").ToString
        Dim idNum2 As String = Me.GridView1.SelectedDataKey.Value("firstname").ToString

        Dim URL As String = [String].Concat("test.aspx?cid=", idNum & idNum2)

        Response.Redirect(URL)


    End Sub
ASKER CERTIFIED SOLUTION
Avatar of M3mph15
M3mph15
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial