Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddBlankEntry of dropdownlist duplicates data
Message
De
26/02/2009 11:03:57
Tegron Tegron
Platinum Technologies
Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
AddBlankEntry of dropdownlist duplicates data
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01384324
Message ID:
01384324
Vues:
75
I noticed when I set the AddBlankEntry property to true and bind my business object to the control all the data in the dropdownlist control is duplicated. For instance if I have 3 items in the dropdownlist with the AddBlankEntry set to true I get 6 items. When I set it to false, then the data looks fine. I stepped through the code and the business object does have the correct number of elements, so it appears that the dropdowlist is reading the data into the dropdownlist fromt he business object twice.

I would like to have the blank entry in the dropdownlist. Does anyone know of a fix or a work around?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform