How can I do a handles from a control contened in a formview, in code only i can see formview but not the controls in the inserttemplate.
thank for any help
How can I do a handles from a control contened in a formview, in code only i can see formview but not the controls in the inserttemplate.
thank for any help
You have to use the FindControl method to find a control.
TextBox txtEmail = (TextBox)FormView1.FindControl("ControldID");
This is because the controls that are in the DataBound Controls are not directly accessible. To Access these controls, you have to use the FindControl
method and cast it in appropriate control.
© 2022 - 2024 — McMap. All rights reserved.