Single Instance Templates
Posted by: Nikhil Kotharis Weblog,
on 18 Oct 2005 |
View original | Bookmarked: 0 time(s)
Templates are a powerful mechanism that enable page developer's to customize controls and define repeatable content (eg. in data-bound controls) and have been around since ASP.NET v1. However, the templating and closely related INamingContainer infrastructure can get in the way of accessing controls defined within. Top-level controls can be accessed directly via associated member fields. However controls inside templates do not get corresponding fields. Instead, you have to use FindControl passing...