Home All Groups Group Topic Archive Search About
Author
22 Feb 2006 12:51 PM
Mark
Hi,

I have a web form that contains a Wizard. One of the wizard steps includes a
number of textboxes each linked to a RequiredFieldValidator. The form also
has a Button that I can click to perform a postcode lookup.

When I enter a postcode in one of the textboxes and click the Button to
perform the lookup, the validators fire and since their textboxes aren't yet
filled in the controls fail validation - this means I can't do the postcode
lookup unless I have filled out all of the textboxes!

Does anyone know how to get around this?

Any help much appreciated...
Mark

Author
23 Feb 2006 4:21 PM
Peter Blum
Set the CausesValidation property to false on the Button.
See this article for answers to more common validation questions:
http://aspalliance.com/699.

--- Peter Blum
www.PeterBlum.com
Email: PLB***@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

Show quoteHide quote
"Mark" <swo***@hotmail.com> wrote in message
news:uP5Bu66NGHA.140@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I have a web form that contains a Wizard. One of the wizard steps includes
> a number of textboxes each linked to a RequiredFieldValidator. The form
> also has a Button that I can click to perform a postcode lookup.
>
> When I enter a postcode in one of the textboxes and click the Button to
> perform the lookup, the validators fire and since their textboxes aren't
> yet filled in the controls fail validation - this means I can't do the
> postcode lookup unless I have filled out all of the textboxes!
>
> Does anyone know how to get around this?
>
> Any help much appreciated...
> Mark
>
>