Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Re: Validation


Message #1 by "Yuvraj Singh Gurjar" <yuvrajsingh_gurjar@h...> on Mon, 10 Jun 2002 15:34:13 +0530
Hi Guys

Can anyone tell me...
If I have a textbox which on exit causes its validation
routine to kick in. The validation involves a trip to the database
and back.

There are several of these text boxes situated on a tab control
and which one is loaded depends on the index selected in
an optionButton control array.

My problem is this.
If an optionButton has been selected and the appropriate tab and textbox
are visible, and the user has entered a value in the text box, then
upon leaving the tetxbox the validation routine is called.
This completes the values for other controls on the same tab.

If however the validation is called because a value has been entered
in a texbox and then the user has attempted to select another option
instead, the validation is invoked and the optionButton click is ignored
and has to be clicked again to cause its onClick routine to run.

Is there any way to cause either the validation to be ignored
or for the optionButton click event to run after the validation 
has taken place?

Thanks for any help on this

Nigel

  Return to Index