0

I need help :

i have listbox1 and listbox2, fill listbox1 via SQL queries.
When i selected items in listbox1 in listbox2 most show another table.How i to do that?

5
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by NETProgrammer
0

Please make clear your problem, which some meaning your word is not give us any clear meaning.

0

I need help :

i have listbox1 and listbox2, fill listbox1 via SQL queries.
When i selected items in listbox1 in listbox2 most show another table.How i to do that?

So, as an example...you have ListBox1 and ListBox2.
If ListBox1 has three(3) entries ....
Ford
Dodge
GMC
....when you select one item in ListBox1, you want the values in ListBox2 to change??

If so, you just need to set up ListBox2 to Bind() on the ListBox1.SelectedIndexChanged event.

0

In listbox1 change event write the code which fills listbox2 , am i missing someting in your question

0
Protected Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ListBox1.SelectedIndexChanged

ListBox2.databind()
End sub

Don't forget to make autopostback property of listbox1= True

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.