Access templated control

  • Thread starter Thread starter Tamer Ibrahim
  • Start date Start date
T

Tamer Ibrahim

The NamingContainer property does not necessarily reference the same control
as the Parent property. For example, in a Repeater control, you might have
an item template containing a table that in turn contains a Label control.
The parent control of the label is a table cell (for example, a
HtmlTableCell object), but its naming container is the DataListItem object,
because it is the DataListItem that defines the namespace for the Label
control, not the table.
I looked for a code that implment such a situation and i find nothing. A
sample code will be a great help .
Thanks in advance.
 
I want to write a code that access a control which is located inside a cell
of a table inside a repeater control.
 
Back
Top