force SelectedIndexChanged event

I have a dropdown list that has a SelectedIndexChanged event to populate another dropdownlist. This works fine except for the initial page load. Apparently the SelectedIndexChanged does not fire when the first dropdownlist is populated (via SQL).

Is there a way to force this event in code? The Sub has (sender As Object, e As EventArgs) and I don't know how to code it to fire.

Thanks for the help.
Who is Participating?
deightonConnect With a Mentor progCommented:
DropDownList1_SelectedIndexChanged(DropDownList1, New System.EventArgs)
strickddConnect With a Mentor Commented:
create a function to call from your SelectedIndexChanged function. Then you can call this same function on page_load when after you populate the DropDownList1
shivam2kConnect With a Mentor Commented:
make sure that u have set AutoPostBack property of the drop down to true
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.