By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,060 Members | 1,893 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,060 IT Pros & Developers. It's quick & easy.

selective validation on specific buttons only

P: n/a
I wish to allow a form to be canceled or go to a previous page without
validation. To do this i would like to validate, say a required field, only
when a specific button is hit. What is the easiest way to do this?
thankss
kes
Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
You can add the CausesValidation="false" to the Button so it won't perform
the validation

-Brock
DevelopMentor
http://staff.develop.com/ballen
I wish to allow a form to be canceled or go to a previous page without
validation. To do this i would like to validate, say a required field,
only
when a specific button is hit. What is the easiest way to do this?
thankss
kes


Nov 19 '05 #2

P: n/a
LP
set CauseValidation = false of the buttons that don't need to validate your
form.
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
I wish to allow a form to be canceled or go to a previous page without
validation. To do this i would like to validate, say a required field, only when a specific button is hit. What is the easiest way to do this?
thankss
kes

Nov 19 '05 #3

P: n/a
thank you,
it figures it would be simple!
kes

"Brock Allen" wrote:
You can add the CausesValidation="false" to the Button so it won't perform
the validation

-Brock
DevelopMentor
http://staff.develop.com/ballen
I wish to allow a form to be canceled or go to a previous page without
validation. To do this i would like to validate, say a required field,
only
when a specific button is hit. What is the easiest way to do this?
thankss
kes


Nov 19 '05 #4

P: n/a
thank you,
it figures it would be simple!
kes

"LP" wrote:
set CauseValidation = false of the buttons that don't need to validate your
form.
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
I wish to allow a form to be canceled or go to a previous page without
validation. To do this i would like to validate, say a required field,

only
when a specific button is hit. What is the easiest way to do this?
thankss
kes


Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.