Sub myGridView_RowCommand(source As Object, e As GridViewCommandEventArgs)
Dim txtName As TextBox = CType(myGridView.FooterRow.FindControl("txtAddName"), TextBox)
IF NOT IsNothing(txtName) Then
txtName.Text // ได้ค่า Label หรือ Textbox
End IF
Sub GridView1_RowCommand(ByVal source As Object, ByVal e As GridViewCommandEventArgs)
If e.CommandName = "showdata" Then
Dim txtName As TextBox = CType(GridView1.FooterRow.FindControl("sale_num"), TextBox)
If Not IsNothing(txtName) Then
txtName.Text = ccc.Text ' ได้ค่า Label หรือ Textbox
End If
Response.Redirect("123.aspx")
End If