Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with Error
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Help with Error
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01234523
Message ID:
01234523
Vues:
44
I have a form with two drop down combo boxes.

The first one is a list of People that is populated based off a simple view,
the Datasource=ViewPersonsWithDocumentsBindingSource, the Value Member is set to PersonID

When a person is selected in the first drop down, I want to populate the second drop down based off the value member in the first drop down.

The second one is a list of documents available based off the person selected in the first combo box, and there is a stored procedure for that one and it requires a parameter which should be the personID.
The datasource=ctLuDocumentsByPersonIDBindingSource

The form runs, but of course the second combobox doesn't populate because the parameter is not set to anything. I'm assuming that in the ComboBox1_SelectedIndexChanged method, I need to put some code to set the parameter and refresh the datasource. I just don't know how to do that. I'm using vb.net

Any pointers?

Thanks
Kirk
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform