Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a table where the label is the record number. I need to pass that to a text box outside of the table but on the same aspx page. I need the value to pass to another table when I save a file. Alternately if I could bypass this step and just pass the label value to the 2nd table when saving, it would be great!
Posted
Comments
Ankur\m/ 21-Mar-14 0:57am    
Your question is not very clear. What table are you talking about - database table or HTML tables? Please understand that we have no idea about what you are doing. So when you ask be clear and give as much details as possible.

1 solution

Managed to corner a coworker who was able to resolve

VB
Protected Sub FormView1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles FormView1.DataBound

    If FormView1.CurrentMode = FormViewMode.Edit Then
        Dim sCompanyAutoLabel1 As Label = CType(FormView1.FindControl("CompanyAutoLabel1"), Label)
        CompanyAuto_TB.Text = sCompanyAutoLabel1.Text

    End If
End Sub
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900