Compare Validator

Discussion in 'ASP .Net Web Controls' started by Hannah Geraghty, Oct 27, 2004.

  1. 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.
    Hannah Geraghty, Oct 27, 2004
    #1
    1. Advertising

  2. Hannah Geraghty

    Chris Moore Guest

    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: (Hannah Geraghty)
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
    >Subject: Compare Validator
    >Date: 27 Oct 2004 09:25:11 -0700
    >Organization: http://groups.google.com
    >Lines: 4
    >Message-ID: <>
    >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:
    >NNTP-Posting-Date: Wed, 27 Oct 2004 16:25:11 +0000 (UTC)
    >Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.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.webcontrols:24246
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
    >
    >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.
    >
    Chris Moore, Oct 27, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robbo
    Replies:
    0
    Views:
    318
    Robbo
    Oct 30, 2003
  2. dotnet beginner

    Compare Validator

    dotnet beginner, Nov 12, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    446
    Mike Moore [MSFT]
    Nov 13, 2003
  3. A.M

    Compare Validator

    A.M, Jun 23, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    3,104
    scoutdickens
    Aug 23, 2007
  4. TN Bella
    Replies:
    0
    Views:
    470
    TN Bella
    Jul 2, 2004
  5. Kaja
    Replies:
    0
    Views:
    590
Loading...

Share This Page