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. Me.IsValid

Me.IsValid

Scheduled Pinned Locked Moved ASP.NET
question
6 Posts 3 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 store a record. It is saying that the form is invalid. I have several field validators. I would like to know if there is something i can type in the debugging tool to find out exactly which validator it is. Is there an easy way to do this, or do i have to go through ALL my validators on the page?? Thank you.

    E 1 Reply Last reply
    0
    • D Dayekh

      Hi, I am trying to store a record. It is saying that the form is invalid. I have several field validators. I would like to know if there is something i can type in the debugging tool to find out exactly which validator it is. Is there an easy way to do this, or do i have to go through ALL my validators on the page?? Thank you.

      E Offline
      E Offline
      Electronic Screw
      wrote on last edited by
      #2

      Are you not display the error message why the validator failed? Its always better you give proper error messages, that would be helpful to you (debugging) as well as the users. Thanks

      Its not so easy to do... So are you here!

      D 1 Reply Last reply
      0
      • E Electronic Screw

        Are you not display the error message why the validator failed? Its always better you give proper error messages, that would be helpful to you (debugging) as well as the users. Thanks

        Its not so easy to do... So are you here!

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

        When I debug it, I discover that the validation is False. The vaidation should be true. My question is: If I have 100 validators, instead of going through each one, is it possible to pinpoint which one is causing the problem? Do not worry about my code. I only want to know the answer to the above question. And if there is a way to pinpoint which validator is causing the problem, please help me discover how to do so. Thank you.

        H 1 Reply Last reply
        0
        • D Dayekh

          When I debug it, I discover that the validation is False. The vaidation should be true. My question is: If I have 100 validators, instead of going through each one, is it possible to pinpoint which one is causing the problem? Do not worry about my code. I only want to know the answer to the above question. And if there is a way to pinpoint which validator is causing the problem, please help me discover how to do so. Thank you.

          H Offline
          H Offline
          Haissam
          wrote on last edited by
          #4

          You can loop through all ur validators control and check for each one if it's valid or not.

          Best Regards, Haissam Abdul Malak My Blog

          D 2 Replies Last reply
          0
          • H Haissam

            You can loop through all ur validators control and check for each one if it's valid or not.

            Best Regards, Haissam Abdul Malak My Blog

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

            Sorry I forgot to mention that it was client side validation. When I debug, I check "Me.IsValid" I cannot loop through the fields because the fields are validation on the client side.

            1 Reply Last reply
            0
            • H Haissam

              You can loop through all ur validators control and check for each one if it's valid or not.

              Best Regards, Haissam Abdul Malak My Blog

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

              I found what the problem was. My application was reloading the page which meant that a few other subroutines were being run before the "Save" subroutine. One of those subroutines was clearing all the the fields which meant that required fields were empty before the record is stored. Hence Me.IsValid was False. Thank you for your replies.

              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