By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,417 Members | 1,825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,417 IT Pros & Developers. It's quick & easy.

Access templated control

P: n/a
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.
Jan 18 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
hi
what is it exactly that you want to do?
the SDK gives sample code for the NamingContainer Property here:
http://msdn2.microsoft.com/en-us/lib...container.aspx

tim
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message
news:OT**************@TK2MSFTNGP03.phx.gbl...
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.
Jan 19 '07 #2

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

"Tim Mackey" <ti********@community.nospamwrote in message
news:83**********************************@microsof t.com...
hi
what is it exactly that you want to do?
the SDK gives sample code for the NamingContainer Property here:
http://msdn2.microsoft.com/en-us/lib...container.aspx

tim
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message
news:OT**************@TK2MSFTNGP03.phx.gbl...
>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.

Feb 15 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.