Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > CustomValidator, arguments.isvalid

Reply
Thread Tools

CustomValidator, arguments.isvalid

 
 
Robert Scheer
Guest
Posts: n/a
 
      05-24-2004
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
 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      05-25-2004
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/de...pplusvalid.asp

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


"Robert Scheer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments