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. Causes Validation

Causes Validation

Scheduled Pinned Locked Moved ASP.NET
question
7 Posts 2 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

    How can I stop my Dropdown from causing validation? The dropdown has AutoPostBack = True. Every time I submit the form, the page is being validated from the top and therefore saving records fails :( Any ideas? Thank you.

    T 1 Reply Last reply
    0
    • D Dayekh

      How can I stop my Dropdown from causing validation? The dropdown has AutoPostBack = True. Every time I submit the form, the page is being validated from the top and therefore saving records fails :( Any ideas? Thank you.

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      Is the CausesValidation property of the dropdownlist set to False? It should default to false.

      GameFly free trial

      D 1 Reply Last reply
      0
      • T ToddHileHoffer

        Is the CausesValidation property of the dropdownlist set to False? It should default to false.

        GameFly free trial

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

        The doesn't have that property :(. At least the one I have doesn't have it.

        T 1 Reply Last reply
        0
        • D Dayekh

          The doesn't have that property :(. At least the one I have doesn't have it.

          T Offline
          T Offline
          ToddHileHoffer
          wrote on last edited by
          #4

          In asp.net 2.0 System.Web.Ui.WebControls.DropDownList does have the property. Which version are you using?

          GameFly free trial

          D 1 Reply Last reply
          0
          • T ToddHileHoffer

            In asp.net 2.0 System.Web.Ui.WebControls.DropDownList does have the property. Which version are you using?

            GameFly free trial

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

            .Net Framework 1.1

            T 1 Reply Last reply
            0
            • D Dayekh

              .Net Framework 1.1

              T Offline
              T Offline
              ToddHileHoffer
              wrote on last edited by
              #6

              Strange, I just tried this in a 1.1 app that I have and the dropdownlist did not cause the validation. Just a guess but do you have a custom validator without the control to validate property set?

              GameFly free trial

              D 1 Reply Last reply
              0
              • T ToddHileHoffer

                Strange, I just tried this in a 1.1 app that I have and the dropdownlist did not cause the validation. Just a guess but do you have a custom validator without the control to validate property set?

                GameFly free trial

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

                No I haven't. They all have the ControlToValidate property set. I'm still looking into it. It is very strange. Every time I try to submit the form, it restarts the page. Maybe this isn't due to the dropdown? I will investigate..

                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