Asp.Net TemplateFields

Posted on 2009-04-21
Last Modified: 2012-05-06
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.

Question by:suporteitec-net
    LVL 39

    Accepted 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.

    Author Comment

    Fantastic !

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Introduction (All good things must come to an end ( The original MySQL API ( has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all curre…
    Introduction HyperText Transfer Protocol ( or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
    This video teaches users how to migrate an existing Wordpress website to a new domain.
    Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now