Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Compare Validator

Reply
Thread Tools

Compare Validator

 
 
Hannah Geraghty
Guest
Posts: n/a
 
      10-27-2004
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.
 
Reply With Quote
 
 
 
 
Chris Moore
Guest
Posts: n/a
 
      10-27-2004
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

--------------------
>From: http://www.velocityreviews.com/forums/(E-Mail Removed) (Hannah Geraghty)
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontro ls
>Subject: Compare Validator
>Date: 27 Oct 2004 09:25:11 -0700
>Organization: http://groups.google.com
>Lines: 4
>Message-ID: <(E-Mail Removed) >
>NNTP-Posting-Host: 213.123.197.6
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1098894311 18772 127.0.0.1 (27 Oct 2004 16:25:11 GMT)
>X-Complaints-To: (E-Mail Removed)
>NNTP-Posting-Date: Wed, 27 Oct 2004 16:25:11 +0000 (UTC)
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news.glorb.com!

postnews1.google.com!not-for-mail
>Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet.webcontro ls:24246
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontro ls
>
>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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare Validator A.M ASP .Net 4 08-23-2007 06:12 PM
Compare validator does not allow thousand separator for double datatype. Kaja ASP .Net 0 09-09-2004 05:28 AM
I really some need help with this compare validator, which isn't working properly. TN Bella ASP .Net 0 07-02-2004 01:33 AM
Compare Validator dotnet beginner ASP .Net 1 11-13-2003 08:27 PM
Compare Validator Not working after copy project to web server ? Robbo ASP .Net 0 10-30-2003 06:09 PM



Advertisments