values from one dropdownlist depend of selected value from another dropdownlist
Posted on 2004-09-12
I work in vb.net and I am begener.
I have a problem with event of DropDownList. I made two dropdownlists: ddlMG & ddlOpstine. The values both of them are loaded from database (tables MG and Opstine). I should make that values of ddlOpstine depends of selected value on ddlMG. For example: if I select value '050' (it's a network group) from ddlMG, in ddlOpstine should be loaded subset of values (cities) that belong to '050' network group, if I select value '051' from ddlMG, in ddlOpstine should be loaded subset of values that belong to '051' network group.
I tried with ddlMG_SelectedIndexChanged event but it doesn't fire this event.
Can somebody help me to resolve my problem?