Protected Sub lnkbtn_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim lnkbtn As LinkButton = TryCast(sender, LinkButton)
Dim gvrow As GridViewRow = TryCast(lnkbtn.NamingContainer, GridViewRow)
Dim id As Integer = Convert.ToInt32(grdData.DataKeys(gvrow.RowIndex).Value.ToString())
Session.Remove("id")
Session("id") = id
Response.Redirect("~/yourpage.aspx")
End Sub
And you have to give DataKeyNames="Id" in Gridview properties
and in the redirected page you can use your session variable