Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Clientside Validation and Page.IsValid

Reply
Thread Tools

Clientside Validation and Page.IsValid

 
 
Paul
Guest
Posts: n/a
 
      05-24-2005
Hi Guys and Girls

I am trying to disable the clientside validation (Required Fields) by
using the ValidatorEnable(id,false), which works find from the point of
view that the client side script is disabled.

The problem that I am having is that Page.IsValid is still returning
false even though I have disable the validator.

I have a column call Notes where there is a validator, this validator
is only be active if a certian checkbox is ticked, otherwise it should
not be validated.

Please help.

Many thanks
Paul Phillips
MXL.COM

 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      05-25-2005
Hi Paul:

ASP.NET validators validate on the client and the server, so you need
to totally disable the validator on both ends. Try setting the Enabled
property to false when you do not want the validator active.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 24 May 2005 15:06:46 -0700, "Paul" <> wrote:

>Hi Guys and Girls
>
>I am trying to disable the clientside validation (Required Fields) by
>using the ValidatorEnable(id,false), which works find from the point of
>view that the client side script is disabled.
>
>The problem that I am having is that Page.IsValid is still returning
>false even though I have disable the validator.
>
>I have a column call Notes where there is a validator, this validator
>is only be active if a certian checkbox is ticked, otherwise it should
>not be validated.
>
>Please help.
>
>Many thanks
>Paul Phillips
>MXL.COM


 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clientside validation for DataGrid's text boxes Kris ASP .Net 1 06-30-2005 04:39 PM
Clientside validation not working. Dennis Calla ASP .Net 1 01-13-2005 05:05 PM
Clientside validation not working Eddie Dodd ASP .Net 4 05-27-2004 07:31 AM
Clientside validation with .NET Validator classes and Opera Roger Kjærnsrød ASP .Net Web Controls 2 05-01-2004 05:52 AM
usercontrol and clientside validation Ken ASP .Net Building Controls 1 01-14-2004 12:06 AM



Advertisments
 



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