Click here to Skip to main content
15,885,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I added required field validator in a page.

its working fine....

i need that validator to work when i click on a particular button,now its firing when i clicked on any of the button in the page.



How can i control it?
Posted

You need to set all validating controls property to one Validation Group. See Validation Group here http://msdn.microsoft.com/en-us/library/ms227424.aspx#Y204[^]
 
Share this answer
 
v4
Comments
Pravin Patil, Mumbai 18-Feb-11 4:05am    
Very nice link amit.
Wild-Programmer 18-Feb-11 4:08am    
Thanks Pravin :)
Use custom validator in your page..and call your function on onserverValidation property in a cutomvalidation...
 
Share this answer
 
You can control this by using the groupName, cause validation Property for the button control and other control that you want to validate for particular button.
 
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