mellenburg
Programmer
I have a form with three drop down list items. The values for the first item can be a 1, 2, or 3. Once the user selects one of the three values, the second drop down list is populated with the remaining values via a javascript program that is called by the OnChange command.
For example, the user chooses 1 for the first box, the second box is then populated with the values 2 and 3. If the user selects 2 for the second box, the third box only has the value 3.
The page works fine when the user submits the value, but if he or she wishes to change the value, I don't know how to postback the values for the second and third box.
For the first box, I've added ASP logic for each value (1,2,3) that says 'if request("box1") = 1 then response.write "selected"'. That approach works.
For the second and third boxes, I don't have the values in the ASP code because they are controlled by the Javascript program.
What kind of approach/es will help me post back the user's original value for box 2 and 3? Will it need to be done with ASP code or with Javascript code?
Matt
For example, the user chooses 1 for the first box, the second box is then populated with the values 2 and 3. If the user selects 2 for the second box, the third box only has the value 3.
The page works fine when the user submits the value, but if he or she wishes to change the value, I don't know how to postback the values for the second and third box.
For the first box, I've added ASP logic for each value (1,2,3) that says 'if request("box1") = 1 then response.write "selected"'. That approach works.
For the second and third boxes, I don't have the values in the ASP code because they are controlled by the Javascript program.
What kind of approach/es will help me post back the user's original value for box 2 and 3? Will it need to be done with ASP code or with Javascript code?
Matt