Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddBlankEntry of dropdownlist duplicates data
Message
From
26/02/2009 11:03:57
Tegron Tegron
Platinum Technologies
Ohio, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
AddBlankEntry of dropdownlist duplicates data
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01384324
Message ID:
01384324
Views:
76
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?
Next
Reply
Map
View

Click here to load this message in the networking platform