hi
i m using two drop down 1 will populate abbrivation base upon other drop down which will show branch name both are depending upon each other if i select abbrivation second must populate branch name and if i select branch it will populte abbrivatiion my database is dynamic and i m usind data source can i asign same datasouce to both if i do this it dont open tell me solution of it what should i do

Recommended Answers

All 3 Replies

do you mean, you populate two dropdowns, and if you chose one element in one dropdown, then the selected value of second dropdown should be changed?

assuming both dropdown lists have the same value field
change property of dropdownlists autopostback=true then in code behind
Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
dropdownlist2.selectedvalue=dropdownlist1.selectedvalue
End Sub

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.