|
 |
aspx_beginners thread: Validate
Message #1 by "dwarakanath hanumappanahalli" <madivi2002@y...> on Tue, 26 Mar 2002 16:07:07
|
|
Hello everybody
Trying to use validation controls in a form which has four text fields and
two push buttons. Validation should be checked against only the first two
text fields when I click the first button however it does validation for
all the fields. How can I prevent it?
Your help is much appreciated
Thank
D
Message #2 by "Minh T. Nguyen" <nguyentriminh@y...> on Tue, 26 Mar 2002 09:21:41 -0800
|
|
Dwarakanath,
As far as I know, the following property in your input box would
disable validation:
<input type="text" id="MyTextBox" CausesValidation="False" ....
Hope it works,
Minh.
-----Original Message-----
From: dwarakanath hanumappanahalli [mailto:madivi2002@y...]
Sent: Tuesday, March 26, 2002 4:07 PM
To: aspx_beginners
Subject: [aspx_beginners] Validate
Hello everybody
Trying to use validation controls in a form which has four text fields
and
two push buttons. Validation should be checked against only the first
two
text fields when I click the first button however it does validation for
all the fields. How can I prevent it?
Your help is much appreciated
Thank
D
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Message #3 by "dwarakanath hanumappanahalli" <madivi2002@y...> on Tue, 26 Mar 2002 19:58:04
|
|
Hi Minh
Thank you very much for the response.
Does it mean I have to handle onClick/onServerClick for each button and
disable the validation for the text box I dont need?
Thanks
Dwarka
> Dwarakanath,
As far as I know, the following property in your input box would
disable validation:
<input type="text" id="MyTextBox" CausesValidation="False" ....
Hope it works,
Minh.
-----Original Message-----
From: dwarakanath hanumappanahalli [mailto:madivi2002@y...]
Sent: Tuesday, March 26, 2002 4:07 PM
To: aspx_beginners
Subject: [aspx_beginners] Validate
Hello everybody
Trying to use validation controls in a form which has four text fields
and
two push buttons. Validation should be checked against only the first
two
text fields when I click the first button however it does validation for
all the fields. How can I prevent it?
Your help is much appreciated
Thank
D
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Message #4 by "Minh T. Nguyen" <nguyentriminh@y...> on Tue, 26 Mar 2002 11:58:16 -0800
|
|
Dwarka,
Oh no. Just use the Page.IsValid method that will automatically
validate each and every control on the page except for the ones where
you have specified CausesValidation to be false. :)
You use Page.IsValid, don't you?
Minh.
-----Original Message-----
From: dwarakanath hanumappanahalli [mailto:madivi2002@y...]
Sent: Tuesday, March 26, 2002 7:58 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: Validate
Hi Minh
Thank you very much for the response.
Does it mean I have to handle onClick/onServerClick for each button and
disable the validation for the text box I dont need?
Thanks
Dwarka
> Dwarakanath,
As far as I know, the following property in your input box would
disable validation:
<input type="text" id="MyTextBox" CausesValidation="False" ....
Hope it works,
Minh.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
|
|
 |