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. Validation Summary Control

Validation Summary Control

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
7 Posts 5 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.
  • D Offline
    D Offline
    Dayekh
    wrote on last edited by
    #1

    Hi, I am trying to summarise all the errors from all fields. For example, I have one Required Field Validator Control and one Validation Summary Control. The Error Message property for the Required Field Validator is "Invalid Date Format". When an invalid Date is entered, BOTH the Required Field Validator Control AND the Validation Summary Control show the error. I want THAT error message to show on the Validation Summary Control and NOT on the Required Field Validator Control. Any ideas? Thank you.

    R S E 3 Replies Last reply
    0
    • D Dayekh

      Hi, I am trying to summarise all the errors from all fields. For example, I have one Required Field Validator Control and one Validation Summary Control. The Error Message property for the Required Field Validator is "Invalid Date Format". When an invalid Date is entered, BOTH the Required Field Validator Control AND the Validation Summary Control show the error. I want THAT error message to show on the Validation Summary Control and NOT on the Required Field Validator Control. Any ideas? Thank you.

      R Offline
      R Offline
      RaviJJain
      wrote on last edited by
      #2

      make the RequieredFieldValidator Enabled=false

      D 1 Reply Last reply
      0
      • R RaviJJain

        make the RequieredFieldValidator Enabled=false

        D Offline
        D Offline
        Dayekh
        wrote on last edited by
        #3

        I set Enabled to False and that disabled the validation completely lol. I discovered that all I had to do was add : Text="" and it worked! Thank you for your reply :-D There is another problem now :( I have 3 Date Fields. When one of them is invalid, ALL the error messages are displayed. I only want the erroneous one to display. The others are fine. Any Ideas? Thank you. EDIT: OMG! ALL three validators were validating the same textbox lol. What a noob mistake! It's sorted now. Thank you for all your replies! -- modified at 8:36 Tuesday 28th November, 2006

        1 Reply Last reply
        0
        • D Dayekh

          Hi, I am trying to summarise all the errors from all fields. For example, I have one Required Field Validator Control and one Validation Summary Control. The Error Message property for the Required Field Validator is "Invalid Date Format". When an invalid Date is entered, BOTH the Required Field Validator Control AND the Validation Summary Control show the error. I want THAT error message to show on the Validation Summary Control and NOT on the Required Field Validator Control. Any ideas? Thank you.

          S Offline
          S Offline
          sabby2006
          wrote on last edited by
          #4

          Make errormessage property of required validator blank or give only space

          Regards

          D 1 Reply Last reply
          0
          • S sabby2006

            Make errormessage property of required validator blank or give only space

            Regards

            D Offline
            D Offline
            Dayekh
            wrote on last edited by
            #5

            If I do that, then the Validation SUMMARY will not show the message. I needed the message to be on the summary, but not the validation control itself. It's OK, I solved it now.. but I have another problem. Look above. Thank you for replying.

            M 1 Reply Last reply
            0
            • D Dayekh

              Hi, I am trying to summarise all the errors from all fields. For example, I have one Required Field Validator Control and one Validation Summary Control. The Error Message property for the Required Field Validator is "Invalid Date Format". When an invalid Date is entered, BOTH the Required Field Validator Control AND the Validation Summary Control show the error. I want THAT error message to show on the Validation Summary Control and NOT on the Required Field Validator Control. Any ideas? Thank you.

              E Offline
              E Offline
              Eduard Keilholz
              wrote on last edited by
              #6

              Erhm, strange that the required field validator shows a message although the user did enter a value in the field... I think something else is wrong, since a required field validator should only show a message when the field is left empty.

              .: I love it when a plan comes together :. http://www.zonderpunt.nl

              1 Reply Last reply
              0
              • D Dayekh

                If I do that, then the Validation SUMMARY will not show the message. I needed the message to be on the summary, but not the validation control itself. It's OK, I solved it now.. but I have another problem. Look above. Thank you for replying.

                M Offline
                M Offline
                marconi Flangepants
                wrote on last edited by
                #7

                How did you solve this, as i also need to work this way. Thanks

                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