Link to home
Start Free TrialLog in
Avatar of chuang4630
chuang4630

asked on

How to use group with RequiredFieldValidator?

There are three out of five fields are required on the ASPX page I am working on. There are also two different buttons. One is the LinkButton for AJAX pop up dialog, while the other is button "Save". How do I group those required fields so only the clicking of "SAVE" button will trigger the validation?

The link button for AJAX popup is for information only, so it should not validate any required fields.
ASKER CERTIFIED SOLUTION
Avatar of pwrBall
pwrBall
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tempstf1
tempstf1

You can do what pwrBall says or another way, is to set the ValidationGroup property of the save button and the field Validators