Text box validation

I

Ian

I have a page which contains a number of input fields and drop down boxes,
the page works OK. I'm trying to add some validation to the page and also
enable the automatic population of fields on the same page dependant on what
the user types. The main field utilises ASP to obtain a list of values from
a database and present it in a drop-down list, this works but if a value is
selected I am unable to trap the value and perform an action, i.e. to get an
IF statement to work.

My example is, the user selects a group from the drop-down list, I would
then like the page to interrogate the selected value and automatically input
values into other fields on the form. Some of the fields that will be
filled in are also drop-down fields populated by ASP, will this be a
problem?

Any help would be appreciated.

Thanks

Ian
 
S

Stefan B Rusynko

If you are doing it w/ multiple pages see http://www.asp101.com/samples/db_pulldown_linked.asp




|I have a page which contains a number of input fields and drop down boxes,
| the page works OK. I'm trying to add some validation to the page and also
| enable the automatic population of fields on the same page dependant on what
| the user types. The main field utilises ASP to obtain a list of values from
| a database and present it in a drop-down list, this works but if a value is
| selected I am unable to trap the value and perform an action, i.e. to get an
| IF statement to work.
|
| My example is, the user selects a group from the drop-down list, I would
| then like the page to interrogate the selected value and automatically input
| values into other fields on the form. Some of the fields that will be
| filled in are also drop-down fields populated by ASP, will this be a
| problem?
|
| Any help would be appreciated.
|
| Thanks
|
| Ian
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top