CompareValidator won't validate

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Y2FzaGRlc2ttYWM=?=

    CompareValidator won't validate

    Hi,

    I have added a CompareValidato r to my .NET 2.0 web page and told it to
    validate against Integers.

    I set the ControlToValida te, the Text, Display (tried both Static and
    Dynamic),the ErrorMessage, theType (integer), yet it still let's the value
    '2233mm' go through.

    What else do I need to do?

  • Hans Kesting

    #2
    Re: CompareValidato r won't validate

    cashdeskmac has brought this to us :
    Hi,
    >
    I have added a CompareValidato r to my .NET 2.0 web page and told it to
    validate against Integers.
    >
    I set the ControlToValida te, the Text, Display (tried both Static and
    Dynamic),the ErrorMessage, theType (integer), yet it still let's the value
    '2233mm' go through.
    >
    What else do I need to do?
    set Operator to DataTypeCheck

    Hans Kesting


    Comment

    • =?Utf-8?B?Y2FzaGRlc2ttYWM=?=

      #3
      Re: CompareValidato r won't validate

      Sorry, Hans, I should also have mentioned that Operator was already set to
      DataTypeCheck.

      "Hans Kesting" wrote:
      cashdeskmac has brought this to us :
      Hi,

      I have added a CompareValidato r to my .NET 2.0 web page and told it to
      validate against Integers.

      I set the ControlToValida te, the Text, Display (tried both Static and
      Dynamic),the ErrorMessage, theType (integer), yet it still let's the value
      '2233mm' go through.

      What else do I need to do?
      >
      set Operator to DataTypeCheck
      >
      Hans Kesting
      >
      >
      >

      Comment

      • =?Utf-8?B?Y2FzaGRlc2ttYWM=?=

        #4
        Re: CompareValidato r won't validate

        Found the problem: I had a typo in the ValidationGroup property (one letter
        was uppercase, it should have been lowercase).

        Comment

        Working...