Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RequiredFieldValidator control

Reply
Thread Tools

RequiredFieldValidator control

 
 
Dave
Guest
Posts: n/a
 
      10-11-2004
Hello.

I have the web form where user can input some data in textboxes, I'm
validating user input with RequiredFieldValidator controls, then I have two
buttons "OK" and "Cancel".
Now when I press "OK" the RequiredFieldValidator works fine, but when I
press "Cancel" I don't want to validate inputs.
So how can I temporarily disable RequiredFieldValidator, because I want
press "Cancel" and handle some actions at server side?

Thank You.


 
Reply With Quote
 
 
 
 
Shiva
Guest
Posts: n/a
 
      10-11-2004
See if setting Button.CausesValidation to false helps. Remember this skips
all the validations not just required-field-validations.

HTH

"Dave" <> wrote in message
news:...
Hello.

I have the web form where user can input some data in textboxes, I'm
validating user input with RequiredFieldValidator controls, then I have two
buttons "OK" and "Cancel".
Now when I press "OK" the RequiredFieldValidator works fine, but when I
press "Cancel" I don't want to validate inputs.
So how can I temporarily disable RequiredFieldValidator, because I want
press "Cancel" and handle some actions at server side?

Thank You.



 
Reply With Quote
 
 
 
 
Dave
Guest
Posts: n/a
 
      10-11-2004
It works fine
Thank you very much.

"Shiva" <> wrote in message
news:%...
> See if setting Button.CausesValidation to false helps. Remember this skips
> all the validations not just required-field-validations.
>
> HTH
>
> "Dave" <> wrote in message
> news:...
> Hello.
>
> I have the web form where user can input some data in textboxes, I'm
> validating user input with RequiredFieldValidator controls, then I have
> two
> buttons "OK" and "Cancel".
> Now when I press "OK" the RequiredFieldValidator works fine, but when I
> press "Cancel" I don't want to validate inputs.
> So how can I temporarily disable RequiredFieldValidator, because I want
> press "Cancel" and handle some actions at server side?
>
> Thank You.
>
>
>



 
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
Problem with RequiredFieldValidator in custom (C#) control Lloyd Dupont ASP .Net 1 01-13-2006 02:21 PM
RequiredFieldValidator for 1 control or other =?Utf-8?B?TWFyaw==?= ASP .Net 1 12-13-2005 10:22 AM
Is the RequiredFieldValidator a reliable control if supported with sensible form level coding? Hazz ASP .Net 5 04-04-2005 03:16 AM
RequiredFieldValidator control giving problems. Please help. Gaurav ASP .Net 1 08-20-2003 02:26 PM
ASP:RequiredFieldValidator control is not working on Netscape 7. Rob ASP .Net 4 07-18-2003 05:34 PM



Advertisments