navcan
Posts: 61
|
| Posted: 05/05/2006, 7:11 PM |
|
Environment: ASP with VBScript, SQL 2000, CCS 3.0.3.1, IIS6, IE6
I’ve used two level dependent listbox from CCS Example Pack 2 in a record form. Record form has approximately 52 fields of various types i.e. textboxes, listboxes, checkboxes and textarea etc.
The record form is like this…
Client Name
Client Account Number
Client Address
Client City
Client Phone
Client Fax
Then I have the dependent listboxes like this
Client Category (master table having two fields CatID, CatName)
Client SubCategory (child table having three fields SubCatID, CatID, SubCatName -- SubCategory is the dependent listbox of Category.)
And then the other Record Form Fields….
Problem/challenge: In the record form, when I select Category and SubCategory (based on two level dependent listbox of CCS e.g pack 2) the onChange event gets fired which unfortunately removes all the data entered in other fields causing a lot of grief and pain to re-enter the information again and then when I submit the form, the validation kicks-in to fill-in any missing Required information, which causes the dependent dropdown information from the SubCategory dropdown field disappear.
Any magic, solution or trick to use dependent listboxes in record form where triggering the onchange event should retain the information in other filled-in fields and validation rule after submit the form should not break the dependent listboxes information.
Please help… I know .NET has a postback feature which works beautiful with dependents listboxes but unfortunately my project is in ASP having more then 200 pages and it is too late for me to switch it to .NET
Thanks for your help.
|
 |
 |
|