List Info

Thread: Validators, indexes and such




Validators, indexes and such
user name
2006-09-21 14:59:26
Ah haa, figure more out.

What is happing is that a pannel sometimes is displayed,
sometimes not
displayed.
As in :
<asp:panel id="pnlCustFldsGv"
runat="server" visible="false">
 
Regardless of the panel being displayed or not, the
validators / number
in array does not change on the server side,

   Protected valAmount1          As RequiredFieldValidator
   Protected valAmount2          As
RegularExpressionValidator
   Protected valAmount3          As
RegularExpressionValidator
   Protected valGvEventCode      As
RegularExpressionValidator
   Protected valFName            As RequiredFieldValidator
   Protected valLName            As RequiredFieldValidator
   Protected valAddress         As RequiredFieldValidator
   Protected valCity             As RequiredFieldValidator
   Protected valState            As RequiredFieldValidator
   Protected valZIP              As RequiredFieldValidator
   Protected valCountry          As RequiredFieldValidator
   Protected valEmail1           As RequiredFieldValidator
   Protected valEmail2           As
RegularExpressionValidator

But does change on the Client side.

var Page_Validators =  
new Array(document.getElementById("valAmount1"),

document.getElementById("valAmount2"), 
document.getElementById("valAmount3"), 
document.getElementById("valFName"), 
document.getElementById("valLName"), 
document.getElementById("valAddress"), 
document.getElementById("valCity"), 
document.getElementById("valCountry"), 
document.getElementById("valEmail1"), 
document.getElementById("valEmail2"), 
document.getElementById("valState"), 
document.getElementById("valZIP"));


 Thus the difference.

Pat

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )