Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Comaprison Validator Not Working

Comaprison Validator Not Working

Scheduled Pinned Locked Moved ASP.NET
help
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sabby2006
    wrote on last edited by
    #1

    I have to compare two text boxes having numeric value. the problem is that if one of the box is not having any thing and the other is having a value its not comparing the validator is not showing message

    Regards

    S J G 3 Replies Last reply
    0
    • S sabby2006

      I have to compare two text boxes having numeric value. the problem is that if one of the box is not having any thing and the other is having a value its not comparing the validator is not showing message

      Regards

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      Try with required field validator also Both should be required then compare

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      1 Reply Last reply
      0
      • S sabby2006

        I have to compare two text boxes having numeric value. the problem is that if one of the box is not having any thing and the other is having a value its not comparing the validator is not showing message

        Regards

        J Offline
        J Offline
        John ph
        wrote on last edited by
        #3

        sabby2006 wrote:

        the problem is that if one of the box is not having any thing and the other is having a value its not comparing the validator is not showing message

        Off course It won't. If you are doing a comparision then you should provide the value, right?

        - Regards -
           JON


        Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


        1 Reply Last reply
        0
        • S sabby2006

          I have to compare two text boxes having numeric value. the problem is that if one of the box is not having any thing and the other is having a value its not comparing the validator is not showing message

          Regards

          G Offline
          G Offline
          Gandalf_TheWhite
          wrote on last edited by
          #4

          If u want to compare two values Then It should be exists. So If u keep Both of Your Text box/inputs Mandatory Then YoU can Compare two values. In advance U can use Require field validator and additionaly u can use customevalidator for entering only numarics. And Change Ur Validator's Display Property To Dynamic.

          Just Do IT™ [Information Technology]™ :->

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups