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. RequiredFieldValidator is not firing?

RequiredFieldValidator is not firing?

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 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.
  • M Offline
    M Offline
    meeram395
    wrote on last edited by
    #1

    I have a requiredfield validator in my form which is not firing at all while clicking on the Submit button. The CausesValidationProperty is true for the button control. The rfv is checking against a textbox and that is also set correct in the rfv property. However, the star appears after the postback. Any idea what's happening? Am I doing anything wrong here? :doh: Please help.

    Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

    S J 2 Replies Last reply
    0
    • M meeram395

      I have a requiredfield validator in my form which is not firing at all while clicking on the Submit button. The CausesValidationProperty is true for the button control. The rfv is checking against a textbox and that is also set correct in the rfv property. However, the star appears after the postback. Any idea what's happening? Am I doing anything wrong here? :doh: Please help.

      Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

      S Offline
      S Offline
      Sundar_R
      wrote on last edited by
      #2

      Is the CausesValidation property for the textbox set to true ?

      M 1 Reply Last reply
      0
      • S Sundar_R

        Is the CausesValidation property for the textbox set to true ?

        M Offline
        M Offline
        meeram395
        wrote on last edited by
        #3

        Yes. It is set to True.

        Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

        S 1 Reply Last reply
        0
        • M meeram395

          Yes. It is set to True.

          Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

          S Offline
          S Offline
          Spunky Coder
          wrote on last edited by
          #4

          Ideally it should work when you have a text box attached to a RFV. Make sure that the button is not calling a client side javascript which in turn submits the page...

          "Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)

          1 Reply Last reply
          0
          • M meeram395

            I have a requiredfield validator in my form which is not firing at all while clicking on the Submit button. The CausesValidationProperty is true for the button control. The rfv is checking against a textbox and that is also set correct in the rfv property. However, the star appears after the postback. Any idea what's happening? Am I doing anything wrong here? :doh: Please help.

            Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

            J Offline
            J Offline
            josh417
            wrote on last edited by
            #5

            Hi,as of my understanding related to ur message I hope u haven't set any error message property for the RFV control.So u r unable to see any message even after the page post back happens(means the validation done).Try to make it. I hope it helps. If not can u clearly post the question on what ur troubling? :)

            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