jjc9809
asked on
Selecting a Vehicle Type from a Drop Down List
Hi Everyone,
I have a web application that I am working on. I have populated the VehicleType_vch dropdown list with T Sequel code using a select statement when the application runs.
When the user selects a Vehicle type called Boat, I want other drop downs to appear and become visible based on the selection by ther user with the VehicleType_vch Drop Down List.
Where do I place the coding to handle this event? Do I place in the Selected IndexChanged event or TextChanged event or some other place? When I run the coding below nothing happens, so I have something wrong.
My coding:
Protected Sub DDLVehicleType_vch_Selecte dIndexChan ged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DDLVehicleType_vch.Selecte dIndexChan ged
If DDLVehicleType_vch.Selecte dItem.ToSt ring = "Boat" Then
LblBoatState.Visible = True
DDLState.Visible = True
End If
End Sub
jjc9809
I have a web application that I am working on. I have populated the VehicleType_vch dropdown list with T Sequel code using a select statement when the application runs.
When the user selects a Vehicle type called Boat, I want other drop downs to appear and become visible based on the selection by ther user with the VehicleType_vch Drop Down List.
Where do I place the coding to handle this event? Do I place in the Selected IndexChanged event or TextChanged event or some other place? When I run the coding below nothing happens, so I have something wrong.
My coding:
Protected Sub DDLVehicleType_vch_Selecte
If DDLVehicleType_vch.Selecte
LblBoatState.Visible = True
DDLState.Visible = True
End If
End Sub
jjc9809
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Question is in a protected procedure are the obejcts you asking for are known? Maybe for testing, try it public.
Hope this will help you.