I have two controls on my page:
1) A list box
2)A drop down list
I want my users to be able to select from the drop down list and the related data be shown in the list box.
For example: lets say the data in the combo box were the names of various students. I want the users to select a student name and then their classes be listed in the list box.
Ok. This is my code so far.
...
User Profile
Collapse
-
Ok. This is my code so far.
[CODE=vb]'Fill the List box with the appropriate class for the selected student'
If IsPostBack Then
ListBox2.DataBi nd()
End If
Dim MyConnection1 As New SqlConnection(C onnectionString )
MyConnection1.O pen()
Dim Myreader1 As SqlDataReader
Dim MyCommand1 As New SqlCommand
... -
How do I fill a List Box from a drop down list selection
I have two controls on my page:
1) A list box
2)A drop down list
I want my users to be able to select from the drop down list and the related data be shown in the list box.
For example: lets say the data in the combo box were the names of various students. I want the users to select a student name and then their classes be listed in the list box.
I am using a database. please help. It is greatly...
No activity results to display
Show More
Leave a comment: