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

Need Help with Validation

P: n/a
hn
Hi ,

On one page I have:
- textbox A and button A,
- textbox B and button B,
All in one form. I want it to work this way: when button A is clicked,
required validation will apply to textbox A only, not textbox B, and when
button B is clicked, the required validation will apply to textbox B only.
How can I achieve this? for now when I click on button A, both textboxes A
and B are validated.

I'm using .net 1.1. Thanks in advance.
Nov 24 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Examine the use of the Javscript function ValidatorEnable(val, enable) from
within a CustomValidator:
http://msdn.microsoft.com/library/de...pplusvalid.asp
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"hn" wrote:
Hi ,

On one page I have:
- textbox A and button A,
- textbox B and button B,
All in one form. I want it to work this way: when button A is clicked,
required validation will apply to textbox A only, not textbox B, and when
button B is clicked, the required validation will apply to textbox B only.
How can I achieve this? for now when I click on button A, both textboxes A
and B are validated.

I'm using .net 1.1. Thanks in advance.

Nov 24 '05 #2

P: n/a
hn
Thanks. Will do.

"Phillip Williams" wrote:
Examine the use of the Javscript function ValidatorEnable(val, enable) from
within a CustomValidator:
http://msdn.microsoft.com/library/de...pplusvalid.asp
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"hn" wrote:
Hi ,

On one page I have:
- textbox A and button A,
- textbox B and button B,
All in one form. I want it to work this way: when button A is clicked,
required validation will apply to textbox A only, not textbox B, and when
button B is clicked, the required validation will apply to textbox B only.
How can I achieve this? for now when I click on button A, both textboxes A
and B are validated.

I'm using .net 1.1. Thanks in advance.

Nov 24 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.