T
tshad
I have 4 dropdown boxes (fromDay, fromMonth, ToDay and ToMonth)
I want to be able to test to make sure that the dates are valid and the the
From dates are < the To dates.
When I add the records to the database, I typically use something like:
FromMonth.SelectedValue & "/01/" & FromYear.SelectedValue
I also have other validators on the screen for emails and required fields.
How would I set up a validator to handle this situation?
I was looking at setting a Custom validator or a CompareValidator to handle
the fields. I would need to move the variables into a temporary variable
for testing (sting or label).
The problem is that it would need to fire after I set up the temporary
variables. All the other validators would fire on submit.
How would I set up this validator to fire after the others and after I have
set up the variables for it to Validate?
Thanks,
Tom
I want to be able to test to make sure that the dates are valid and the the
From dates are < the To dates.
When I add the records to the database, I typically use something like:
FromMonth.SelectedValue & "/01/" & FromYear.SelectedValue
I also have other validators on the screen for emails and required fields.
How would I set up a validator to handle this situation?
I was looking at setting a Custom validator or a CompareValidator to handle
the fields. I would need to move the variables into a temporary variable
for testing (sting or label).
The problem is that it would need to fire after I set up the temporary
variables. All the other validators would fire on submit.
How would I set up this validator to fire after the others and after I have
set up the variables for it to Validate?
Thanks,
Tom