I've created an FormView template that collects records from an SQL database. And I've stated that my FormView is pagable. Now my question is, how do I save a text from an label inside that FormView items to a string in a code behind?
The problem is that in code behind I cannot see the label objects inside that FormView. I can see FormView object itself. So I'm not shure if I can via FormView object, see a collection of objects inside it and manipulate with them in runtime like this:
This of course isn't the right syntax, but I was wondering if there is something like this that I can use?
For example: I have an record that shows ID, Name and Age and it shows in labels on my FormView object. Now i want to make a button on that form view, and when I click it, I want it to pass the Name label.text to an string inside my code behind. Is this possible? I think it is, cause it wouldn't make sense if it isn't?
The problem is that in code behind I cannot see the label objects inside that FormView. I can see FormView object itself. So I'm not shure if I can via FormView object, see a collection of objects inside it and manipulate with them in runtime like this:
Code:
FormView1.Items.lblName.text = "some other text"
For example: I have an record that shows ID, Name and Age and it shows in labels on my FormView object. Now i want to make a button on that form view, and when I click it, I want it to pass the Name label.text to an string inside my code behind. Is this possible? I think it is, cause it wouldn't make sense if it isn't?