Home All Groups Group Topic Archive Search About

Need Help with Validation

Author
24 Nov 2005 3:07 PM
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.

Author
24 Nov 2005 4:58 PM
Phillip Williams
Examine the use of the Javscript function ValidatorEnable(val, enable) from
within a CustomValidator: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspplusvalid.asp
Show quoteHide quote
"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.
Are all your drivers up to date? click for free checkup

Author
24 Nov 2005 5:05 PM
hn
Thanks. Will do.

Show quoteHide quote
"Phillip Williams" wrote:

> Examine the use of the Javscript function ValidatorEnable(val, enable) from
> within a CustomValidator:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspplusvalid.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.

Bookmark and Share