T
Trond
I have an ASP.NET page with various textboxes, checkboxes and a date picker.
Attached to some of these controls i have RequiredFieldValidator. One of the
textboxes has a button next to it. When clicking a calender object is
opening and allows the user to select a date. When clicking that button the
RequiredFieldValidators triggers. So i added some code to the calender
button event :
RequiredFieldValidator2.Enabled = false;
RequiredFieldValidator1.Enabled = false;
But this is no good since validation is clientside. Is there a way i can
solve this? In other words toggle on and off validators in code so that they
dont trigger before the submit button is clicked
Best regards
Trond
Attached to some of these controls i have RequiredFieldValidator. One of the
textboxes has a button next to it. When clicking a calender object is
opening and allows the user to select a date. When clicking that button the
RequiredFieldValidators triggers. So i added some code to the calender
button event :
RequiredFieldValidator2.Enabled = false;
RequiredFieldValidator1.Enabled = false;
But this is no good since validation is clientside. Is there a way i can
solve this? In other words toggle on and off validators in code so that they
dont trigger before the submit button is clicked
Best regards
Trond