User Profile

Collapse

Profile Sidebar

Collapse
Boheim
Boheim
Last Activity: Nov 25 '07, 11:58 PM
Joined: Nov 20 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How do I fill my listbox from a selection from the drop down list.

    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.
    ...
    See more | Go to post

  • 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

    ...
    See more | Go to post
    Last edited by Killer42; Nov 20 '07, 11:34 PM. Reason: Added CODE=vb tag

    Leave a comment:


  • 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...
    See more | Go to post
No activity results to display
Show More
Working...