Hans Kesting <ne***********@spamgourmet.com> wrote in
news:#L**************@TK2MSFTNGP10.phx.gbl:
Nergal wrote: Is it possible to add a validator at runtime and have it validate ?
I add a bunch of textboxes, validators etc dynamically and restore
them on postback but whatever I do the validator controls always
return false for IsValid.
TIA.
Yes it is possible. I generate some pages including validators
and they work fine. When are you adding those controls? It should
be in Page_Load (or maybe Page_Init).
Thanks for your reply.
I found the problem, the parent control was Visible = false; therefore the
validators always return true.
Thanks to reflector for uncovering that one ;)
Cheers
--
¬¬¬¬nergal¬¬¬¬