Compare Validator

H

Hannah Geraghty

Is it possible to use the <asp:CompareValidator> to compare two
textboxes containing time values (hh:mm) where one time must always be
greater than the other? I have tried using the type of date but this
does not appear to work.
 
C

Chris Moore

I believe the only valid types for the CompareValidator are Currency, Double, Date, Integer or String. To do what you are looking for will require you to use a
CustomValidator and implement the functionality yourself.

Chris

--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top