I have a set of validation controls on my asp.net page, to validate values in textfields. I also have a calendar control on the same page. When I click on the calendar image, the validation control message box pops up. How can I avoid that from appearing when the calendar icon is clicked?
+1
A:
Perhaps try to put the calendar control into a different ValidationGroup
than the other controls.
If it is not in a validation group and the other controls aren't either, try to set a validation group for the other controls.
Venemo
2010-05-21 21:33:25
The calendar control is not in a validation group. The textboxes and dropdownlist controls have validation, but they are not in a validation group.
user279521
2010-05-22 14:08:03
@user279521 - Try to set a validation group for the other controls. (Edited my answer.)
Venemo
2010-05-22 15:14:39
We have a winner.
user279521
2010-05-24 11:27:44
+1
A:
You can either use validation groups or if you don't want it to ever trigger validation set CausesValidation = false
Ben Robinson
2010-05-21 21:45:04