Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using validator for validations but event not fire on clicking the buttons means i am using two buttons i want to show error message on submit button and there is another button which is other on clicking other button i want to show textbox.but if i use validators then event not fire on clicking other button..plz help me?
Posted
Comments
PrashantSonewane 15-Apr-13 4:58am    
can you give the html code, which may help us understand better whats going wrong?
Meanwhile you can check if validation group is set correctly and no other javascript function is being called which return false. Also check autopostback property (should set to true) for the controls you want to fire event.

Hello,
you add validation group for textbox and button on which you want to fire validation and left an empty validation group for that but which you want to fire event.

Hope it help's you...
 
Share this answer
 
Set ValidationGroup="MyValidation" to both validator control and the button on which you want to validation should takes place
 
Share this answer
 

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