Skip to Content
0
Former Member
Jan 19, 2008 at 12:27 PM

Validation of more than one control in a report

22 Views

Hi,

I have two textboxes and submit buttons in my report.One is for Name Search and another one for submitting. If the user doesnt know the name he can enter a part of the name and redirect to a search page.Otherwise if he knows the name,he can enter the name in the second textbox and submit to redirect to another page.

I have separate validations for both these textboxes. For the search textbox , the number of characters in the name should be greater than two.For the submit texbox,i can have maximum of 3 names.

Now, the problem is whenever i click search or submit button,the validation for both the textboxes are fired regardless of whichever button i click even though i have separate builder function for both these controls.

Is there any way to limit the validation of the textboxes to the clicking of the respective submit buttons?

If anyone came accross the same or similar problem before then please let me know if there is any solution or any alternative way to do it.

Thanks in advance