i created CustomValidator with js function in wizard view just to check password length. And he dosn`t works, sorry for my newbieness.
js function:
<script type="text/javascript">
function clientValidate(sender, args) {
if (args.Value.length < 5 ||args.Value.length > 30) {
args.IsValid = false;
}
}
</script>
asp fields:
<asp:TextBox ID="tbPassword1" runat="server" TextMode="Password"></asp:TextBox>
<asp:CustomValidator ID="CustomValidatorPassLength" runat="server" display="Dynamic" ControlToValidate="tbPassword1" ClientValidationFunction="clientValidate" ErrorMessage="Slaptažodis turi būti nuo 5 iki 30 simbolių ilgio." ForeColor="Red"></asp:CustomValidator>
Thanks and sorry!