Rather simple: will asp: Validators still validate when they are in invisible containers? What about the invisibility of the ControlToValidate target?
For instance:
<asp:Panel id="myPanel" runat="server" visible="false">
<asp:Textbox id="myTextbox" runat="server" />
<asp:RequiredFieldValidator id="myRfv" runat="server"
controltovalidate="myTextbox" />
</asp:Panel>
Above is a validator in an invisible panel. Will myRfv perform validation? How about if myTextbox is invisible instead?
I ask about this because I have very specialized validators in my ASPX, in which I also have panels that are hidden / shown dynamically. Although I’m all for disabling the validators themselves, I’m just wondering if they will be automatically disabled.
Thanks guys !: D
source
share