Access templated control

Discussion in 'ASP .Net' started by Tamer Ibrahim, Jan 18, 2007.

  1. 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.
    Tamer Ibrahim, Jan 18, 2007
    1. Advertisements

  2. Tamer Ibrahim

    Tim Mackey Guest

    Tim Mackey, Jan 19, 2007
    1. Advertisements

  3. I want to write a code that access a control which is located inside a cell
    of a table inside a repeater control.
    Tamer Ibrahim, Feb 14, 2007
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.