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