CustomValidator, arguments.isvalid

Discussion in 'ASP .Net Web Controls' started by Robert Scheer, May 24, 2004.

  1. Hi.

    When creating a custom validator, are the lines of code
    "arguments.IsValid = false" and "return false" different things on the
    client code? Or is "arguments.Isvalid = false" equivalent to "return
    false"?

    Thanks,
    Robert Scheer
    Robert Scheer, May 24, 2004
    #1
    1. Advertising

  2. Robert Scheer

    Teemu Keiski Guest

    Hi,

    arguments isValid is the one that determines the outcome of the validation.
    The other would be just return value of the called function which, IIRC, in
    case if customvalidator is ignored

    About ASP.NET Validation:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspplusvalid.asp

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist
    http://blogs.aspadvice.com/joteke


    "Robert Scheer" <> wrote in message
    news:...
    > Hi.
    >
    > When creating a custom validator, are the lines of code
    > "arguments.IsValid = false" and "return false" different things on the
    > client code? Or is "arguments.Isvalid = false" equivalent to "return
    > false"?
    >
    > Thanks,
    > Robert Scheer
    Teemu Keiski, May 25, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike P

    Page.IsValid

    Mike P, Jun 25, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,377
    Mike P
    Jun 25, 2003
  2. DesignerX
    Replies:
    1
    Views:
    346
    Joe Molloy
    Dec 18, 2003
  3. Drunken Coder

    Page.IsValid behavior

    Drunken Coder, Jan 7, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    810
    Peter Blum
    Jan 9, 2004
  4. Emilio
    Replies:
    6
    Views:
    56,023
  5. Arti
    Replies:
    0
    Views:
    322
Loading...

Share This Page