Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding a Collection to a ListBox Object
Message
De
10/03/2005 23:12:34
 
 
À
10/03/2005 21:07:59
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00993867
Message ID:
00994720
Vues:
28
Bonnie,

>It sounds like you have a lot of data to bring down and, since you're getting data based on what the user chooses from a Combo, I would not get it all at once. Get the data to fill the first Combo. Once the user makes a choice from that Combo, get the data that fills the 2nd Combo based on that choice (so, only the regions for that country). And the same for the third Combo. This is not an unreasonable design and should be relatively fast.

In the sample in the MSDN it demonstrates how to create and work with a web service using a single table and the objects on the front end are binded to the dataset. Would there be any issues if I follow this method for now since I am not that familiar with the Web Service?

Also when I tried to play around with master-slave tables. I defined the relationship on the dataset on web service using the relationship object. For the second combo box, I bounded it to the relationship so that when the user selects a country from the 1st combo box, the second would automatically display the child records. I'm not kinda sure of what is going on here though. I was just curious if this has the same effect as what you were asking me to do? Or does it get the complete records and filter it locally (thus fetching the records only once). If it is the second, that is happening then that would not be good right?

Although, I did put the .fill(ds) command on the selection changed event of the first combo. So thinking out loud this is working in the way that you suggested. Right?

Maintenance wise, is it easy to manage this kind of setup? Like if I make changes on the WebService (assuming that I do stick to WinForms), would I need to refresh the reference to the web service on the client apps?

The questions keep growing in my head everytime I get an answer to one... 8 )


Thanx! for the help 8 )

Martin
Shit happens!!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform