• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 168
  • Last Modified:

Asp.Net TemplateFields

I have a simple form with only 3 textboxes, When I got those textboxes converted into template fields I can´t access them inside my codebehind page.

Any function in the codebehind file says that those textboxes or whatever control  doesn´t exist.

I  would like some help.

1 Solution
That's exactly correct and meant that way. If it is a template field that only appears once, then you can access them using FindControl. If it is a template field inside a grid, then you can access them using FindControl as well, but you should do so from the events that the container control fires.

The FindControl is a method that is available on any control. Use it on the control that contain the template.
suporteitec-netAuthor Commented:
Fantastic !

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now