C.H.,

You could loop through them using their index. Instead of using FindControl
and the control's name you could just use the index of the control (as long
as you know what kind of control it is it would work just fine).

Dim MyTextBox As TextBox =
CType(MyRepeater.Items(0).Controls([ControlLoopHere]), TextBox)

Sincerely,


--
S. Justin Gengo, MCP
Web Developer

Free code library at:
[url]www.aboutfortunate.com[/url]

"Out of chaos comes order."
Nietzche
"Christian H" <no@name.no> wrote in message
news:O1kz$zlWDHA.888@TK2MSFTNGP10.phx.gbl...
> Hi!
>
> I have a form with x dynamically created formfields. I have named them
> "question_x". I also have a hidden field named "numb" which contains the
> number of formfields I have on my page. That way I could loop through form
0
> to x, and get values of all formfields.
> Now, these formfields are inside of a repeater, and because of this, they
> have been given strange names.
> Instead of "question_x" they are now called
> "ctl_something_something_question_x".
>
> Is there a way to force my formfields to be named exactly what I want, or
is
> there something else I can do in order to get the values?
>
> C.H
>
>