extract controls of a repeater template at runtime.

V

volkmar rigo

hi.

is there a way to access the controls of a repeater template at
runtime? i tried the GetFields method to extract all the controls of
the repeater as FieldInfoArray but that array contails only ITemplate
objects. i want to do this before i call the bind of the repeater so
items are not available.

kind regards

volkmar
 
V

volkmar rigo

the problem is, that i don't know the names of the controls. i want to
create a method that extracts all the labels of a given page
(including the labels in the repeater controls) and extracts all the
texts to a text file.
 
B

bruce barker \(sqlwork.com\)

you have to use recursion, as each control can have children controls.

-- bruce (sqlwork.com)
 
V

volkmar rigo

i tried that. but the children of a repeater control are
CompiledTemplateBuilder-objects (ITemplate) and there stops
my recursion...
 

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

Top