Private Sub myGridView_RowDataBound(sender As Object, e As GridViewRowEventArgs)
Dim btnNext As Label = DirectCast(e.Row.FindControl("btnNext"), Button)
IF Not IsNothing(btnNext) Then
btnNext.Attribute.Add("OnClick","window.location='webpage.aspx?id="&e.Row.DataItem("ID")&"';")
End IF
End Sub