Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Persist DropDownList values on postback
Message
De
26/11/2004 13:05:57
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
26/11/2004 09:49:15
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00964714
Message ID:
00964996
Vues:
11
Howdy, Bonnie-

Does the weather suck over there on the Eastside? Probably not. It's definitely winter over here by the Sound.

>PMFJI here ... I've barely used ASP.NET, so I'm not much of an expert in this area ... but I've gotta ask this: wouldn't it be easier to populate a DataSet with a DataAdapter and populate your Dropdown from the DataSet instead of using a DataReader? It's easy to persist the DataSet between postbacks.

Good question. Yes, that's an alternative, of course. In my simple mind, I have this guideline that says "use DataReaders for read-only data access for best performance." Personally I really love DataSets and DataTables, and have been impressed by their performance so far, but I had this idea that it was silly in this instance. So...Live and learn. Of course, I learn more by chosing the wrong approach than the right one, but it surely cuts in to billable hours. <s>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform