Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I have a little problem about validator. I am explaining it shortly;


I have a password change page and RegularExpressionValidator there to force user for a strong password (such as length of the password.) After user changed password, page shows a success message about password change and there is a new button becomes visible to continue other steps. But, the continue button doesn't work because the page reloads to get success message from server and validations blocks continue button action. I tried to "validator.enable=false" after button clicked but not working. I will be appraciated if you can give me advice about it?



Best regards,
Posted

Set the CausesValidation property of this "continue" button to false. that should do the trick.
 
Share this answer
 
v2
Comments
AshishChaudha 11-Jul-12 6:43am    
My 5!
Rahul Rajat Singh 11-Jul-12 6:44am    
thanks.
Vani Kulkarni 11-Jul-12 7:44am    
Ditto! 5!
Rahul Rajat Singh 11-Jul-12 7:48am    
thanks.
Joezer BH 3-Feb-13 2:56am    
5
1.If your continue button not doing some other validation then set its CausesValidation property to false.
2.If your continue button is doing some other validation then you should use validationgroup
http://msdn.microsoft.com/en-us/library/ms227424.aspx
Simple Ex of validation group
 
Share this answer
 
v2
Set Causes validation false to new button
or
Define validation group
 
Share this answer
 
Why do not you try to use AJAX method for change user password...
 
Share this answer
 
Comments
pradiprenushe 11-Jul-12 7:23am    
what??????????

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900