title: change the text of two labels based on the selected row of a gridview
body: <p>I want to change the text of two labels based on the selected row of a gridview.</p>
  
  <p>I keep getting an error that says the public member row does not exist on linkbutton</p>
  
  <pre><code>Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
  
      Dim LinkButton1 As LinkButton = DirectCast(sender, LinkButton)
  
      Dim tour As Label = CType(sender.Row.FindControl("label2"), Label)
      Dim depart As Label = CType(sender.Row.FindControl("label3"), Label)
  
      test.Text = tour.Text
      test1.Text = depart.Text
  
      UpdatePanel9.Update()
  
  End Sub
  </code></pre>