Access templated control

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

Tamer Ibrahim

I want to write a code that access a control which is located inside a cell
of a table inside a repeater control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top