Protected Sub gvShowRecord_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles gvShowRecord.RowCommand
If e.CommandName = "Select" Then
Dim InspectID As String = CStr(e.CommandArgument)
Dim url As String
url = "showrecord.aspx?InspectID=" & InspectID
Response.Redirect(url)
End If
End Sub
Tag : .NET, Ms SQL Server 2008, Web (ASP.NET), VB.NET, VS 2008 (.NET 3.x)
Protected Sub GridView1_RowCommand(sender As Object, e As GridViewCommandEventArgs)
If e.CommandName = "cmdBind" Then
Dim CusID As String = e.CommandArgument.ToString()
Dim lb As LinkButton = DirectCast(e.CommandSource, LinkButton)
Response.Redirect("webpage.aspx?CusID=" & CusID)
End If
End Sub