I'm a newbie. Using VS2005 making a simple ASPX page for testing and
learning.
I have a simple SQL connection.
I created a Formview and I am in EditItem Template. I added a label
(LABEL1) to the outside of the ItemTemplate and I have a button inside the
template. I want my Label1 to = my bound item (LastNameLable) inside the
template when I click the button. The code I thought would work is below,
but I'm getting Label1 with a text "FALSE" when I click the button.
Thanks!
Phil
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
Dim nghia As String
nghia = FormView1.TemplateControl.ID.Contains("LastNameLab el")
Label1.Text = nghia
End Sub