c# - asp:Validator in invisible elements + invisible targets -


somewhat straightforward: asp:validators still perform validation when they're in invisible containers? how if controltovalidate target invisible?

for example:

<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 validator in invisible panel. myrfv still perform validation? how if mytextbox invisible instead?

i'm asking because have specialized validators in aspx, wherein have panels hidden/shown dynamically. while i'm disabling validators themselves, i'm curious whether they'll automatically disable anyway.

thanks guys! :d

if panel invisible nothing rendered, there no validator.

in other case control validate invisible try validate textbox , return false(not valid) default not finding it


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -