Validators in version 1.1

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Validators in version 1.1

    We have a technique for our order process whereby we
    simply turn panels on and off to capture data for the
    various stages, rather than the normal method of moving
    between pages.

    In 1.0, the validators were not being fired if they were
    in a panel whose visibility was set to false. However, in
    1.1, it appears that ALL validators fire on validation,
    regardless of whether the panel is visible or not. This
    is causing all sorts of problems, not the least of which
    is that the page.IsValid is always false now, as we
    obviously don't capture ALL data at once... so the
    required validators fail.

    Has anyone seen this, and more importantly, is there a fix
    for it? Any help is greatly appreciated!

    Bill Richardson
    Senior Software Engineer
    Proflowers.com
    Bill Richardson Guest

  2. Similar Questions and Discussions

    1. Validators
      I gave up and just wrote my own validator to handle all my date validation. bill "J. Marcelo Barbieri" <mbarbieri@bf.com.br> wrote in message...
    2. Combo Box & Validators
      Hi, I am trying to validate a form in Flex. The form is made up of many text input boxes and combo boxes. I can validate the text inputs quite...
    3. ASP.NET Required field validators
      Hi How can I stop a requiredfield validator from validating? The scenario is that my page has 2 modes "Add" & "Edit" I have a single form on...
    4. Validators and javascript
      How I can from client javascript know when one of my textboxes, Radio Button List, drop down box, etc... Validated to False when submitting the...
    5. All validators stopped working
      Hi, A very weird thing has happened. Today, all the validators on all the pages and user controls on one of the servers stopped working. They...
  3. #2

    Default Re: Validators in version 1.1


    Bill,

    I've seen it too. I don't know if this is by design or not. Perhaps someone
    else could enlighten us with that information. You may need to resort to
    setting each panel's validators to disabled as you move between panels :(

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Bill Richardson" <brichardson@proflowers.com> wrote in message
    news:046501c35097$31157740$a401280a@phx.gbl...
    > We have a technique for our order process whereby we
    > simply turn panels on and off to capture data for the
    > various stages, rather than the normal method of moving
    > between pages.
    >
    > In 1.0, the validators were not being fired if they were
    > in a panel whose visibility was set to false. However, in
    > 1.1, it appears that ALL validators fire on validation,
    > regardless of whether the panel is visible or not. This
    > is causing all sorts of problems, not the least of which
    > is that the page.IsValid is always false now, as we
    > obviously don't capture ALL data at once... so the
    > required validators fail.
    >
    > Has anyone seen this, and more importantly, is there a fix
    > for it? Any help is greatly appreciated!
    >
    > Bill Richardson
    > Senior Software Engineer
    > Proflowers.com

    S. Justin Gengo Guest

  4. #3

    Default Re: Validators in version 1.1

    Well... at least I'm not going nuts. I'm seeing this on
    Windows 2003... are you on 2003, or WIN2K?
    >-----Original Message-----
    >
    >Bill,
    >
    >I've seen it too. I don't know if this is by design or
    not. Perhaps someone
    >else could enlighten us with that information. You may
    need to resort to
    >setting each panel's validators to disabled as you move
    between panels :(
    >
    >--
    >S. Justin Gengo, MCP
    >Web Developer
    >
    >Free code library at:
    >[url]www.aboutfortunate.com[/url]
    >
    >"Out of chaos comes order."
    > Nietzche
    >"Bill Richardson" <brichardson@proflowers.com> wrote in
    message
    >news:046501c35097$31157740$a401280a@phx.gbl...
    >> We have a technique for our order process whereby we
    >> simply turn panels on and off to capture data for the
    >> various stages, rather than the normal method of moving
    >> between pages.
    >>
    >> In 1.0, the validators were not being fired if they were
    >> in a panel whose visibility was set to false. However,
    in
    >> 1.1, it appears that ALL validators fire on validation,
    >> regardless of whether the panel is visible or not. This
    >> is causing all sorts of problems, not the least of which
    >> is that the page.IsValid is always false now, as we
    >> obviously don't capture ALL data at once... so the
    >> required validators fail.
    >>
    >> Has anyone seen this, and more importantly, is there a
    fix
    >> for it? Any help is greatly appreciated!
    >>
    >> Bill Richardson
    >> Senior Software Engineer
    >> Proflowers.com
    >
    >
    >.
    >
    Bill Richardson Guest

  5. #4

    Default Re: Validators in version 1.1

    Was he talking about the .Visible property or the style display property?
    > It sounds to me like they fixed a bug in 1.1. Why should a validator care
    > about whether there's a style="DISPLAY: none" on some tag it's contained
    in?


    PJ Guest

  6. #5

    Default Re: Validators in version 1.1

    Now that's a damn good question. If a panel set ".Visible=False" is rendered
    at all, including its child controls, then that's real big news to me!

    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]


    "PJ" <pjwal@hotmail.com> wrote in message
    news:unGDXkLUDHA.1864@TK2MSFTNGP11.phx.gbl...
    > Was he talking about the .Visible property or the style display property?
    >
    > > It sounds to me like they fixed a bug in 1.1. Why should a validator
    care
    > > about whether there's a style="DISPLAY: none" on some tag it's contained
    > in?
    >
    >

    John Saunders Guest

  7. #6

    Default Re: Validators in version 1.1

    No, of course it's child controls are not rendered. anyway, validators
    really aren't rendered, but perhaps their registration w/ the page is taking
    outside of the render method and, therefore whether or not the render is
    called on the control is inconsequential.

    The page has a .Validators collection and the .IsValid property of
    IValidator is writable. You could set the instance .IsValid property to
    true if it it's it's parent placeholder .Visible is false. IF this is
    indeed a bug in .net.

    "John Saunders" <john.saunders@surfcontrol.com> wrote in message
    news:%23mzASuLUDHA.2148@TK2MSFTNGP11.phx.gbl...
    > Now that's a damn good question. If a panel set ".Visible=False" is
    rendered
    > at all, including its child controls, then that's real big news to me!
    >
    > --
    > John Saunders
    > Internet Engineer
    > [email]john.saunders@surfcontrol.com[/email]
    >
    >
    > "PJ" <pjwal@hotmail.com> wrote in message
    > news:unGDXkLUDHA.1864@TK2MSFTNGP11.phx.gbl...
    > > Was he talking about the .Visible property or the style display
    property?
    > >
    > > > It sounds to me like they fixed a bug in 1.1. Why should a validator
    > care
    > > > about whether there's a style="DISPLAY: none" on some tag it's
    contained
    > > in?
    > >
    > >
    >
    >

    PJ Guest

  8. #7

    Default Re: Validators in version 1.1

    Bill,

    For right now we're still on windows 2000 advanced server. We'll be
    switching to windows 2003 server soon, but I don't expect that to change the
    way the framework is handling this... Then again... :)

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Bill Richardson" <brichardson@proflowers.com> wrote in message
    news:064701c3509d$77155480$a101280a@phx.gbl...
    > Well... at least I'm not going nuts. I'm seeing this on
    > Windows 2003... are you on 2003, or WIN2K?
    >
    > >-----Original Message-----
    > >
    > >Bill,
    > >
    > >I've seen it too. I don't know if this is by design or
    > not. Perhaps someone
    > >else could enlighten us with that information. You may
    > need to resort to
    > >setting each panel's validators to disabled as you move
    > between panels :(
    > >
    > >--
    > >S. Justin Gengo, MCP
    > >Web Developer
    > >
    > >Free code library at:
    > >[url]www.aboutfortunate.com[/url]
    > >
    > >"Out of chaos comes order."
    > > Nietzche
    > >"Bill Richardson" <brichardson@proflowers.com> wrote in
    > message
    > >news:046501c35097$31157740$a401280a@phx.gbl...
    > >> We have a technique for our order process whereby we
    > >> simply turn panels on and off to capture data for the
    > >> various stages, rather than the normal method of moving
    > >> between pages.
    > >>
    > >> In 1.0, the validators were not being fired if they were
    > >> in a panel whose visibility was set to false. However,
    > in
    > >> 1.1, it appears that ALL validators fire on validation,
    > >> regardless of whether the panel is visible or not. This
    > >> is causing all sorts of problems, not the least of which
    > >> is that the page.IsValid is always false now, as we
    > >> obviously don't capture ALL data at once... so the
    > >> required validators fail.
    > >>
    > >> Has anyone seen this, and more importantly, is there a
    > fix
    > >> for it? Any help is greatly appreciated!
    > >>
    > >> Bill Richardson
    > >> Senior Software Engineer
    > >> Proflowers.com
    > >
    > >
    > >.
    > >

    S. Justin Gengo Guest

  9. #8

    Default Re: Validators in version 1.1

    A good experiment for someone with access to both 1.0 and 1.1 would be to
    try this validators-in-panels trick with one visible and one not, and to try
    it on both, and to review the generated HTML in both versions. Simplest page
    only, please. Just a textbox and RequiredFieldValidator per panel.

    Enquiring minds without easy access to 1.1 want to know...

    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]


    "PJ" <pjwal@hotmail.com> wrote in message
    news:%235ZOX%23LUDHA.1740@TK2MSFTNGP12.phx.gbl...
    > No, of course it's child controls are not rendered. anyway, validators
    > really aren't rendered, but perhaps their registration w/ the page is
    taking
    > outside of the render method and, therefore whether or not the render is
    > called on the control is inconsequential.
    >
    > The page has a .Validators collection and the .IsValid property of
    > IValidator is writable. You could set the instance .IsValid property to
    > true if it it's it's parent placeholder .Visible is false. IF this is
    > indeed a bug in .net.
    >
    > "John Saunders" <john.saunders@surfcontrol.com> wrote in message
    > news:%23mzASuLUDHA.2148@TK2MSFTNGP11.phx.gbl...
    > > Now that's a damn good question. If a panel set ".Visible=False" is
    > rendered
    > > at all, including its child controls, then that's real big news to me!
    > >
    > > --
    > > John Saunders
    > > Internet Engineer
    > > [email]john.saunders@surfcontrol.com[/email]
    > >
    > >
    > > "PJ" <pjwal@hotmail.com> wrote in message
    > > news:unGDXkLUDHA.1864@TK2MSFTNGP11.phx.gbl...
    > > > Was he talking about the .Visible property or the style display
    > property?
    > > >
    > > > > It sounds to me like they fixed a bug in 1.1. Why should a validator
    > > care
    > > > > about whether there's a style="DISPLAY: none" on some tag it's
    > contained
    > > > in?
    > > >
    > > >
    > >
    > >
    >
    >

    John Saunders Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139