I have two textboxes, each contain a time (textboxA / textboxB). I need to be able to validate that textboxA is before textboxB.
For exmaple:
- textboxA = 10:30 / textboxB = 12:30
VALIDATION = true - textboxA = 10:30 /
textboxB = 10:00 VALIDATION = false
I would prefer to do the checks using server-side controls.
Thanks in advance for any help.
Clare
You’ll want to use the CompareValidator for that and since .NETs drag & drop validators provide both client-side and server-side validation you’re covered.
You’ll also want to check the
Page.IsValidproperty before processing server side to verify that all the validation was successful.