Hello All,
I have a scenario where I have a registration page with a dozen or so user controls that get loaded dynamically. During the load each of these user controls each has a number of custom containers that loads validators based on the container's attributes. The problem I'm having is when I do a search like such...
For Each Val as IValidator in Validators
....
Next
...I'm only seeing Validators at the page level, none of the validators show up that are part of a user control. I'm not able to post source code at this time (sorry I know that really makes it harder), but if anyone has an idea of why you wouldn't be able to see user control validators, I'd really appreciate any feedback. The validators work as they should, I just can't find them when iterating through the controls and/or validators during init, load, or pre-render. I also thought maybe they were being assigned a validation group, but that's not the case either, they're not which led me to assume they should all be going into the Page ValidatorCollec tion. Apparently they're not or I'm trying to read them at the wrong time in the page life cycle.
Thanks for any help.
I have a scenario where I have a registration page with a dozen or so user controls that get loaded dynamically. During the load each of these user controls each has a number of custom containers that loads validators based on the container's attributes. The problem I'm having is when I do a search like such...
For Each Val as IValidator in Validators
....
Next
...I'm only seeing Validators at the page level, none of the validators show up that are part of a user control. I'm not able to post source code at this time (sorry I know that really makes it harder), but if anyone has an idea of why you wouldn't be able to see user control validators, I'd really appreciate any feedback. The validators work as they should, I just can't find them when iterating through the controls and/or validators during init, load, or pre-render. I also thought maybe they were being assigned a validation group, but that's not the case either, they're not which led me to assume they should all be going into the Page ValidatorCollec tion. Apparently they're not or I'm trying to read them at the wrong time in the page life cycle.
Thanks for any help.
Comment