Listbox + get query
Database
1
Posts
1
Posters
0
Views
1
Watching
-
i have a listbox and when i select a item in the listbox i want this selected item to get information from the db and then show this data (that is related to the selected item) shown in seperated textboxes. an example: i choose a building from the listbox, when i select a building i want to retrieve the name of the building, adress, city and so on.. to be shown in their textboxes that is read only. How can i do this? i have the db ready but dont know how to retrieve the data that is related to the selected item to be shown in their txtBoxes. I really hope that someone could help me with this, i use C# as language and ms sql server.