pnjones
Posts: 42
|
| Posted: 02/11/2005, 9:43 AM |
|
I want to add code to search a database after the user has selected a code and return a value based on the code the user has selected. Implementing the VB code with asp is not an issue. But where and how do i add the trigger to start the code and return the values to the 2 tesxt boxes in the form
Thanks for any help
_________________
Regards
Pat |
 |
 |
mrachow
Posts: 509
|
| Posted: 02/14/2005, 12:17 AM |
|
I suppose the event OnValidation is good for you.
It fires when the user had entered all data and submitted the form. In that event you should be able to access all entered values.
On "first" submit you would return to the same page. Maybe you would like to redirect to a different page later by checking if these values from the database had been retrieved already.
_________________
Best regards,
Michael |
 |
 |
pnjones
Posts: 42
|
| Posted: 02/14/2005, 1:21 AM |
|
Thanks for the reply , i was hoping for a method which did not invlove submitting the form , probably not possible
Regards
Pat
_________________
Regards
Pat |
 |
 |
Benjamin Krajmalnik
|
| Posted: 02/15/2005, 9:16 AM |
|
Look for dependent listboxes.
There are some good articles on how to achieve this.
A very good method is on the Sylvan oOmputing website. It requires
Javascript and calling an asp script which retrieves the values for the
dependant listboxes.
|
|
|
 |