|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Wizard + control validationHi,
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 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 > >
ASP.NET 2.0 and ObjectDataBinding
C#/ASP.NET 2.0 - Convert HTML Table to DataGrid/Source Dynamic Textboxes. checking checkboxes per javascript in asp.net 2.0 treeview WebPartManager is Undefined Type.GetType() Row count for query through SqlDataSource and GridView asp wizard Parsing HTML in Controls Datagrid viewstate |
|||||||||||||||||||||||